-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/sindreslungaard/duel-masters
- Loading branch information
Showing
31 changed files
with
524 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package dm07 | ||
|
||
import ( | ||
"duel-masters/game/civ" | ||
"duel-masters/game/family" | ||
"duel-masters/game/fx" | ||
"duel-masters/game/match" | ||
) | ||
|
||
func SiriGloryElemental(c *match.Card) { | ||
|
||
c.Name = "Siri, Glory Elemental" | ||
c.Power = 7000 | ||
c.Civ = civ.Light | ||
c.Family = []string{family.AngelCommand} | ||
c.ManaCost = 6 | ||
c.ManaRequirement = []string{civ.Light} | ||
|
||
c.Use(fx.Creature, fx.Doublebreaker, | ||
fx.WhenAll([]func(*match.Card, *match.Context) bool{fx.EndOfMyTurnCreatureBZ, fx.IDontHaveShields}, fx.MayUntapSelf), | ||
fx.When(fx.InTheBattlezone, fx.BlockerWhenNoShields), | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package dm07 | ||
|
||
import ( | ||
"duel-masters/game/civ" | ||
"duel-masters/game/cnd" | ||
"duel-masters/game/family" | ||
"duel-masters/game/fx" | ||
"duel-masters/game/match" | ||
) | ||
|
||
func GazariasDragon(c *match.Card) { | ||
c.Name = "Gazarias Dragon" | ||
c.Power = 4000 | ||
c.Civ = civ.Fire | ||
c.Family = []string{family.ArmoredDragon} | ||
c.ManaCost = 5 | ||
c.ManaRequirement = []string{civ.Fire} | ||
|
||
c.Use(fx.Creature, fx.When(fx.InTheBattlezone, func(card *match.Card, ctx *match.Context) { | ||
condition1 := &match.Condition{ID: cnd.DoubleBreaker, Val: true, Src: nil} | ||
condition2 := &match.Condition{ID: cnd.PowerAmplifier, Val: 4000, Src: nil} | ||
fx.HaveSelfConditionsWhenNoShields(card, ctx, []*match.Condition{condition1, condition2}) | ||
})) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package dm07 | ||
|
||
import ( | ||
"duel-masters/game/civ" | ||
"duel-masters/game/family" | ||
"duel-masters/game/fx" | ||
"duel-masters/game/match" | ||
) | ||
|
||
func PhantasmalHorrorGigazabal(c *match.Card) { | ||
|
||
c.Name = "Phantasmal Horror Gigazabal" | ||
c.Power = 9000 | ||
c.Civ = civ.Darkness | ||
c.Family = []string{family.Chimera} | ||
c.ManaCost = 5 | ||
c.ManaRequirement = []string{civ.Darkness} | ||
|
||
c.Use(fx.Creature, fx.Evolution, fx.Doublebreaker, fx.LightStealth) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package dm07 | ||
|
||
import ( | ||
"duel-masters/game/civ" | ||
"duel-masters/game/family" | ||
"duel-masters/game/fx" | ||
"duel-masters/game/match" | ||
) | ||
|
||
func GezaryUndercoverDoll(c *match.Card) { | ||
|
||
c.Name = "Gezary, Undercover Doll" | ||
c.Power = 2000 | ||
c.Civ = civ.Darkness | ||
c.Family = []string{family.DeathPuppet} | ||
c.ManaCost = 3 | ||
c.ManaRequirement = []string{civ.Darkness} | ||
|
||
c.Use(fx.Creature, fx.NatureStealth) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package dm07 | ||
|
||
import ( | ||
"duel-masters/game/civ" | ||
"duel-masters/game/family" | ||
"duel-masters/game/fx" | ||
"duel-masters/game/match" | ||
) | ||
|
||
func SkyCrushertheAgitator(c *match.Card) { | ||
|
||
c.Name = "Sky Crusher, the Agitator" | ||
c.Power = 4000 | ||
c.Civ = civ.Fire | ||
c.Family = []string{family.Dragonoid} | ||
c.ManaCost = 7 | ||
c.ManaRequirement = []string{civ.Fire} | ||
c.TapAbility = fx.EachPlayerDestroys1Mana | ||
|
||
c.Use(fx.Creature, fx.TapAbility) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package dm07 | ||
|
||
import ( | ||
"duel-masters/game/civ" | ||
"duel-masters/game/family" | ||
"duel-masters/game/fx" | ||
"duel-masters/game/match" | ||
) | ||
|
||
func RodiGaleNightGuardian(c *match.Card) { | ||
|
||
c.Name = "Rodi Gale, Night Guardian" | ||
c.Power = 3500 | ||
c.Civ = civ.Light | ||
c.Family = []string{family.Guardian} | ||
c.ManaCost = 4 | ||
c.ManaRequirement = []string{civ.Light} | ||
|
||
c.Use(fx.Creature, fx.DarknessStealth) | ||
} |
Oops, something went wrong.