Fixed a problem with the tests and the logic that opponents can activate activatedAbilities.

This commit is contained in:
LevelX2 2013-02-01 19:54:27 +01:00
parent 1ac909d09c
commit 0c03cf6797

View file

@ -278,7 +278,7 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
//20100716 - 601.2g
UUID activatorId = controllerId;
if (this instanceof ActivatedAbilityImpl) {
if ((this instanceof ActivatedAbilityImpl) && ((ActivatedAbilityImpl)this).getActivatorId()!= null) {
activatorId = ((ActivatedAbilityImpl)this).getActivatorId();
}
if (!costs.pay(this, game, sourceId, activatorId, noMana)) {