I've got a skil that uses YEP_BuffsStatesCore plugin to move the target when a state is applied. However, it's moving the whole troop instead.
In this example the player is meant to knock just the one enemy up in the air for the rest of the turn. It applies the state to the one, but they rest of the troop are lifted as well.
https://gyazo.com/48ccea34d458eb3d994ba0f4ea173120
In this example the player is meant to knock just the one enemy up in the air for the rest of the turn. It applies the state to the one, but they rest of the troop are lifted as well.
https://gyazo.com/48ccea34d458eb3d994ba0f4ea173120
Code:
<State animation: 200>
<Custom Apply Effect>
SceneManager._scene._spriteset._enemySprites.forEach((sprite) =>
{
if(!sprite.isAlreadyFloating) {
sprite.isAlreadyFloating = true;
sprite._homeY -= 200;
}
});
</Custom Apply Effect>
<Custom Remove Effect>
SceneManager._scene._spriteset._enemySprites.forEach((sprite) =>
{
sprite._homeY += 200;
sprite.isAlreadyFloating = false;
});
</Custom Remove Effect>