Added null checks to hasPassive(...) (#709)

This commit is contained in:
Sobki 2017-01-26 11:10:31 +10:00 committed by Christopher Martin
parent 011a047559
commit c068463232

View file

@ -67,6 +67,11 @@ public class PassiveManager {
}
public static boolean hasPassive(Player player, CoreAbility passive) {
if (player == null) {
return false;
} else if (passive == null) {
return false;
}
BendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player);
Element element = passive.getElement();
if (passive.getElement() instanceof SubElement) {