This commit is contained in:
Jeff Wadsworth 2022-06-28 10:26:12 -05:00
parent f72313bd40
commit da10b6397c

View file

@ -57,7 +57,9 @@ public class GoadTargetEffect extends ContinuousEffectImpl {
public boolean apply(Game game, Ability source) {
for (UUID targetId : getTargetPointer().getTargets(game, source)) {
Permanent targetCreature = game.getPermanent(targetId);
targetCreature.addGoadingPlayer(source.getControllerId());
if (targetCreature != null) {
targetCreature.addGoadingPlayer(source.getControllerId());
}
}
return true;
}