mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08: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…
Add table
Add a link
Reference in a new issue