mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Orbs of Warding - Fixed possible null pointer exception.
This commit is contained in:
parent
878909809a
commit
c49e18049c
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class OrbsOfWardingEffect extends PreventionEffectImpl {
|
|||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
if (event.getTargetId().equals(source.getControllerId())) {
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(event.getSourceId());
|
||||
if (permanent.getCardType().contains(CardType.CREATURE)) {
|
||||
if (permanent != null && permanent.getCardType().contains(CardType.CREATURE)) {
|
||||
return super.applies(event, source, game);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue