Fixed typos in EnemyCharge effect handler.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment 2021-08-14 22:38:42 +00:00
parent f5c665fcee
commit 7c00b9f37f
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ public class EnemyCharge extends AbstractEffect
@Override
public void onStart(BuffInfo info)
{
if (info.getEffected().isMovementDisabled())
if (info.getEffector().isMovementDisabled())
{
return;
}
@ -66,7 +66,7 @@ public class EnemyCharge extends AbstractEffect
return;
}
int offset = Math.max((int) distance - info.getSkill().getFlyRadius(), 30);
int offset = Math.max(info.getSkill().getFlyRadius(), 30);
// approximation for moving closer when z coordinates are different
// TODO: handle Z axis movement better

View File

@ -45,7 +45,7 @@ public class EnemyCharge extends AbstractEffect
@Override
public void onStart(BuffInfo info)
{
if (info.getEffected().isMovementDisabled())
if (info.getEffector().isMovementDisabled())
{
return;
}
@ -66,7 +66,7 @@ public class EnemyCharge extends AbstractEffect
return;
}
int offset = Math.max((int) distance - info.getSkill().getFlyRadius(), 30);
int offset = Math.max(info.getSkill().getFlyRadius(), 30);
// approximation for moving closer when z coordinates are different
// TODO: handle Z axis movement better