mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
fixed issue with TargetedPlayerCtrl in filterListByType
This commit is contained in:
@@ -3,8 +3,7 @@ ManaCost:4 R
|
||||
Types:Instant
|
||||
Text:no text
|
||||
A:SP$ DealDamage | Cost$ 4 R | ValidTgts$ Player | NumDmg$ 4 | SubAbility$ DmgAll | SpellDescription$ CARDNAME deals 4 damage to target player and 1 damage to each creature that player controls.
|
||||
#SVar:DmgAll:DB$ DamageAll | Cost$ 0 | NumDmg$ 1 | ValidCards$ Creature.TargetedPlayerCtrl
|
||||
SVar:DmgAll:DB$ DamageAll | Cost$ 0 | NumDmg$ 1 | ValidCards$ Creature | ValidPlayers$ Targeted
|
||||
SVar:DmgAll:DB$ DamageAll | Cost$ 0 | NumDmg$ 1 | ValidCards$ Creature.TargetedPlayerCtrl
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/chandras_fury.jpg
|
||||
|
||||
@@ -2605,7 +2605,7 @@ public class AbilityFactory {
|
||||
type = type.replace("Triggered", "Card");
|
||||
}
|
||||
|
||||
} else if (type.contains("Targeted")) {
|
||||
} else if (type.startsWith("Targeted")) {
|
||||
source = null;
|
||||
final SpellAbility parent = AbilityFactory.findParentsTargetedCard(sa);
|
||||
if (parent != null) {
|
||||
|
||||
Reference in New Issue
Block a user