mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Merge branch 'kardur' into 'master'
Remove Goad from Kardur See merge request core-developers/forge!4527
This commit is contained in:
@@ -240,6 +240,17 @@ public class CombatUtil {
|
||||
}
|
||||
}
|
||||
|
||||
// Quasi-goad logic for "Kardur, Doomscourge" etc. that isn't goad but behaves the same
|
||||
if (defender.hasKeyword("Creatures your opponents control attack a player other than you if able.")) {
|
||||
for (GameEntity ge : getAllPossibleDefenders(attacker.getController())) {
|
||||
if (!defender.equals(ge) && ge instanceof Player) {
|
||||
if (canAttack(attacker, ge)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Keywords
|
||||
final boolean canAttackWithDefender = attacker.hasKeyword("CARDNAME can attack as though it didn't have defender.");
|
||||
for (final KeywordInterface keyword : attacker.getKeywords()) {
|
||||
|
||||
@@ -2,8 +2,10 @@ Name:Kardur, Doomscourge
|
||||
ManaCost:2 B R
|
||||
Types:Legendary Creature Demon Berserker
|
||||
PT:4/3
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigGoad | TriggerDescription$ When CARDNAME enters the battlefield, until your next turn, creatures your opponents control attack each combat if able and attack a player other than you if able.
|
||||
SVar:TrigGoad:DB$ Goad | Defined$ Valid Creature.YouDontCtrl
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ When CARDNAME enters the battlefield, until your next turn, creatures your opponents control attack each combat if able and attack a player other than you if able.
|
||||
SVar:TrigEffect:DB$ Effect | StaticAbilities$ AttackEach,AttackOther | Duration$ UntilYourNextTurn
|
||||
SVar:AttackEach:Mode$ Continuous | Affected$ Creature.OppCtrl | AddHiddenKeyword$ CARDNAME attacks each combat if able. | Description$ Creatures your opponents control attack each combat if able and attack a player other than you if able.
|
||||
SVar:AttackOther:Mode$ Continuous | Affected$ You | AddKeyword$ Creatures your opponents control attack a player other than you if able. | Secondary$ True | Description$ Creatures your opponents control attack each combat if able and attack a player other than you if able.
|
||||
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Creature.attackingLKI | Execute$ TrigDrain | TriggerZones$ Battlefield | TriggerDescription$ Whenever an attacking creature dies, each opponent loses 1 life and you gain 1 life.
|
||||
SVar:TrigDrain:DB$ LoseLife | Defined$ Player.Opponent | LifeAmount$ 1 | SubAbility$ DBGainOneLife
|
||||
SVar:DBGainOneLife:DB$ GainLife | Defined$ You | LifeAmount$ 1
|
||||
|
||||
Reference in New Issue
Block a user