mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed a problem with the tests and the logic that opponents can activate activatedAbilities.
This commit is contained in:
parent
1ac909d09c
commit
0c03cf6797
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
||||||
|
|
||||||
//20100716 - 601.2g
|
//20100716 - 601.2g
|
||||||
UUID activatorId = controllerId;
|
UUID activatorId = controllerId;
|
||||||
if (this instanceof ActivatedAbilityImpl) {
|
if ((this instanceof ActivatedAbilityImpl) && ((ActivatedAbilityImpl)this).getActivatorId()!= null) {
|
||||||
activatorId = ((ActivatedAbilityImpl)this).getActivatorId();
|
activatorId = ((ActivatedAbilityImpl)this).getActivatorId();
|
||||||
}
|
}
|
||||||
if (!costs.pay(this, game, sourceId, activatorId, noMana)) {
|
if (!costs.pay(this, game, sourceId, activatorId, noMana)) {
|
||||||
|
|
Loading…
Reference in a new issue