Fixed typos in EnemyCharge effect handler.
Contributed by Sahar.
This commit is contained in:
@ -45,7 +45,7 @@ public class EnemyCharge extends AbstractEffect
|
|||||||
@Override
|
@Override
|
||||||
public void onStart(BuffInfo info)
|
public void onStart(BuffInfo info)
|
||||||
{
|
{
|
||||||
if (info.getEffected().isMovementDisabled())
|
if (info.getEffector().isMovementDisabled())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ public class EnemyCharge extends AbstractEffect
|
|||||||
return;
|
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
|
// approximation for moving closer when z coordinates are different
|
||||||
// TODO: handle Z axis movement better
|
// TODO: handle Z axis movement better
|
||||||
|
@ -45,7 +45,7 @@ public class EnemyCharge extends AbstractEffect
|
|||||||
@Override
|
@Override
|
||||||
public void onStart(BuffInfo info)
|
public void onStart(BuffInfo info)
|
||||||
{
|
{
|
||||||
if (info.getEffected().isMovementDisabled())
|
if (info.getEffector().isMovementDisabled())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ public class EnemyCharge extends AbstractEffect
|
|||||||
return;
|
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
|
// approximation for moving closer when z coordinates are different
|
||||||
// TODO: handle Z axis movement better
|
// TODO: handle Z axis movement better
|
||||||
|
Reference in New Issue
Block a user