forked from External/mage
* Fixed that as thought effects could wrongly only apply to the ability controller.
This commit is contained in:
parent
b3c0cc10b0
commit
f9f49e9c00
11 changed files with 77 additions and 95 deletions
|
|
@ -435,7 +435,7 @@ public class ContinuousEffects implements Serializable {
|
|||
for (AsThoughEffect effect: asThoughEffectsList) {
|
||||
HashSet<Ability> abilities = asThoughEffectsMap.get(type).getAbility(effect.getId());
|
||||
for (Ability ability : abilities) {
|
||||
if (controllerId.equals(ability.getControllerId())) {
|
||||
//if (controllerId.equals(ability.getControllerId())) { must be checked in the applies method
|
||||
if (affectedAbility == null) {
|
||||
if (effect.applies(objectId, ability, controllerId, game)) {
|
||||
return true;
|
||||
|
|
@ -445,7 +445,7 @@ public class ContinuousEffects implements Serializable {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue