Force monster targetting to be restricted to arena players.
This commit is contained in:
1 parent
ca6ee0ea3e
commit
515fbc6a22
1 file changed
+1
-1
@@ -27,7 +27,7 @@ public class AbilityUtils
|
|||||||
if (entity instanceof Creature) {
|
if (entity instanceof Creature) {
|
||||||
LivingEntity target = ((Creature) entity).getTarget();
|
LivingEntity target = ((Creature) entity).getTarget();
|
||||||
|
|
||||||
if (target instanceof Player) {
|
if (target instanceof Player && arena.inArena((Player) target)) {
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user