mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Merge branch 'master' of https://github.com/magefree/mage
This commit is contained in:
commit
958503cff2
7 changed files with 274 additions and 97 deletions
|
|
@ -494,7 +494,11 @@ public class ContinuousEffects implements Serializable {
|
|||
if (affectedAbility != null && affectedAbility.getSourceObject(game) instanceof SplitCardHalf) {
|
||||
idToCheck = ((SplitCardHalf) affectedAbility.getSourceObject(game)).getParentCard().getId();
|
||||
} else {
|
||||
idToCheck = objectId;
|
||||
if (game.getObject(objectId) instanceof SplitCardHalf) {
|
||||
idToCheck = ((SplitCardHalf) game.getObject(objectId)).getParentCard().getId();
|
||||
} else {
|
||||
idToCheck = objectId;
|
||||
}
|
||||
}
|
||||
for (AsThoughEffect effect : asThoughEffectsList) {
|
||||
Set<Ability> abilities = asThoughEffectsMap.get(type).getAbility(effect.getId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue