Fix bug where player can enter battle with self
This commit is contained in:
parent
bd7d7e16f3
commit
faf7a02619
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ public class AttackEventHandler
|
||||||
else if(!isAttackerValid(event)
|
else if(!isAttackerValid(event)
|
||||||
&& event.getEntity() != null
|
&& event.getEntity() != null
|
||||||
&& event.getSource().getTrueSource() != null
|
&& event.getSource().getTrueSource() != null
|
||||||
|
&& event.getEntity() != event.getSource().getTrueSource()
|
||||||
&& !config.getBattleIgnoringPlayers().contains(event.getSource().getTrueSource().getEntityId())
|
&& !config.getBattleIgnoringPlayers().contains(event.getSource().getTrueSource().getEntityId())
|
||||||
&& !config.getBattleIgnoringPlayers().contains(event.getEntity().getEntityId())
|
&& !config.getBattleIgnoringPlayers().contains(event.getEntity().getEntityId())
|
||||||
&& battleManager.checkAttack(event))
|
&& battleManager.checkAttack(event))
|
||||||
|
|
Loading…
Reference in a new issue