spjspj - Fix for if Combustible Gearhulk dies prior to trigger resolving KLD

This commit is contained in:
spjspj 2016-09-19 23:42:43 +10:00
parent 120d7612f6
commit a4195b2bb0

View file

@ -99,7 +99,7 @@ class CombustibleGearhulkEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
Permanent sourcePermanent = game.getPermanent(source.getSourceId());
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
if (controller != null && sourcePermanent != null) {
UUID opponentId;
if (game.getOpponents(controller.getId()).size() == 1) {