Update ReyhanLastOfTheAbzan.java

This commit is contained in:
SpikesCafe-google 2018-01-21 00:16:24 -05:00 committed by GitHub
parent 57a9c04032
commit b899ca3b5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,8 +118,9 @@ class ReyhanLastOfTheAbzanTriggeredAbility extends TriggeredAbilityImpl {
}
Permanent permanent = (Permanent) game.getLastKnownInformation(event.getTargetId(), Zone.BATTLEFIELD);
Player player = game.getPlayer(source.getControllerId());
// A creature you control
if (!permanent.getControllerId().equals(this.getControllerId()) || !permanent.isCreature()) {
if (player == null || !player.equals(this.getControllerId()) || permanent == null || !permanent.isCreature()) {
return false;
}