Skip to content

Commit

Permalink
Merge pull request #267 from DanieloV/add-ArmoredTransportGaliacruse-…
Browse files Browse the repository at this point in the history
…dm07

Add Armored Transport Galiacruse dm07
  • Loading branch information
sindreslungaard authored Sep 29, 2024
2 parents 938972f + 4c22683 commit 826fee4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions game/cards/dm07/armorloid.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package dm07

import (
"duel-masters/game/civ"
"duel-masters/game/cnd"
"duel-masters/game/family"
"duel-masters/game/fx"
"duel-masters/game/match"
"fmt"
)

func ArmoredTransportGaliacruse(c *match.Card) {

c.Name = "Armored Transport Galiacruse"
c.Power = 5000
c.Civ = civ.Fire
c.Family = []string{family.Armorloid}
c.ManaCost = 6
c.ManaRequirement = []string{civ.Fire}
c.TapAbility = func(card *match.Card, ctx *match.Context) {
fx.FindFilter(
card.Player,
match.BATTLEZONE,
func(card *match.Card) bool { return card.Civ == civ.Fire },
).Map(func(x *match.Card) {
x.AddCondition(cnd.AttackUntapped, nil, card)
ctx.Match.ReportActionInChat(x.Player, fmt.Sprintf("%s can attack untapped creatures this turn", x.Name))
})
}

c.Use(fx.Creature, fx.TapAbility)

}
2 changes: 1 addition & 1 deletion game/cards/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ var DM07 = map[string]match.CardConstructor{
"c3c7ac05-c847-4842-9504-22e29fa24a2f": dm07.KingBenthos,
"d1fe4c40-637e-4e5c-a769-0d2fc8aa11ca": dm07.GandarSeekerofExplosions,
"b6863540-2985-4349-aa82-05f9dbe36993": nil,
"44293c09-875b-4582-99cd-450b544c875d": nil,
"44293c09-875b-4582-99cd-450b544c875d": dm07.ArmoredTransportGaliacruse,
"38504a0f-da4a-4855-9d93-08866f8b955d": nil,
"7e664555-207b-47d6-8078-f40c5885021d": nil,
"f603d464-3492-40ba-990d-85dc02814966": nil,
Expand Down
1 change: 1 addition & 0 deletions game/fx/creature.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ func Creature(card *match.Card, ctx *match.Context) {
}

if f, ok := tapEffect.(func(card *match.Card, ctx *match.Context)); ok {
ctx.Match.ReportActionInChat(card.Player, fmt.Sprintf("%s activates tap effect", card.Name))
f(card, ctx)
}

Expand Down

0 comments on commit 826fee4

Please sign in to comment.