Skip to content
Snippets Groups Projects
Commit 11547a8f authored by Zoey76's avatar Zoey76
Browse files

Fixing Fear effect checks.

Reported by: Maui, guerra5
parent 958fa96c
No related branches found
No related tags found
No related merge requests found
...@@ -51,11 +51,9 @@ public final class Fear extends AbstractEffect ...@@ -51,11 +51,9 @@ public final class Fear extends AbstractEffect
@Override @Override
public boolean canStart(BuffInfo info) public boolean canStart(BuffInfo info)
{ {
if (info.getEffected().isNpc() || (info.getEffected() instanceof L2DefenderInstance) || (info.getEffected() instanceof L2FortCommanderInstance) || (info.getEffected() instanceof L2SiegeFlagInstance) || (info.getEffected().getTemplate().getRace() == Race.SIEGE_WEAPON)) return info.getEffected().isPlayer() || info.getEffected().isSummon() || (info.getEffected().isAttackable() && //
{ !((info.getEffected() instanceof L2DefenderInstance) || (info.getEffected() instanceof L2FortCommanderInstance) || //
return false; (info.getEffected() instanceof L2SiegeFlagInstance) || (info.getEffected().getTemplate().getRace() == Race.SIEGE_WEAPON)));
}
return true;
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment