TeleportToTarget effect start when target is in LoS.

This commit is contained in:
MobiusDevelopment
2019-05-12 04:05:19 +00:00
parent f0048fb519
commit 97a8caa81e
13 changed files with 78 additions and 0 deletions

View File

@@ -47,6 +47,12 @@ public final class TeleportToTarget extends AbstractEffect
return EffectType.TELEPORT_TO_TARGET;
}
@Override
public boolean canStart(BuffInfo info)
{
return (info.getEffected() != null) && GeoEngine.getInstance().canSeeTarget(info.getEffected(), info.getEffector());
}
@Override
public boolean isInstant()
{