-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dm 08 add turbo rush cards #308
base: master
Are you sure you want to change the base?
Dm 08 add turbo rush cards #308
Conversation
c.ManaCost = 7 | ||
c.ManaRequirement = []string{civ.Fire} | ||
|
||
c.Use(fx.Creature, fx.DragonEvolution, fx.Triplebreaker, fx.WheneverThisAttacks(fx.ManaBurnX(2))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WheneverThisAttacks -> When(AttackConfirmed, ....) if the my #315 PR will get approved first
fx.Creature, | ||
fx.When(fx.TurboRushCondition, func(card *match.Card, ctx *match.Context) { turboRush = true }), | ||
fx.When(fx.EndOfMyTurn, func(card *match.Card, ctx *match.Context) { turboRush = false }), | ||
fx.When(func(c *match.Card, ctx *match.Context) bool { return turboRush }, fx.WheneverThisAttacks(fx.OpponentDiscardsHand)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WheneverThisAttacks -> When(AttackConfirmed, ....) if the my #315 PR will get approved first
fx.When(fx.TurboRushCondition, func(card *match.Card, ctx *match.Context) { turboRush = true }), | ||
fx.When(fx.EndOfMyTurn, func(card *match.Card, ctx *match.Context) { turboRush = false }), | ||
fx.When(func(c *match.Card, ctx *match.Context) bool { return turboRush }, | ||
fx.When(fx.WheneverThisAttacksAndIsntBlocked, fx.DestroyOpponentCreature(true, match.DestroyedByMiscAbility))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WheneverThisAttacks -> When(AttackConfirmed, ....) if the my #315 PR will get approved first
fx.Creature, | ||
fx.When(fx.TurboRushCondition, func(card *match.Card, ctx *match.Context) { turboRush = true }), | ||
fx.When(fx.EndOfMyTurn, func(card *match.Card, ctx *match.Context) { turboRush = false }), | ||
fx.When(func(c *match.Card, ctx *match.Context) bool { return turboRush }, fx.WheneverThisAttacks(fx.DestroyOpCreatureXPowerOrLess(4000, match.DestroyedByMiscAbility))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WheneverThisAttacks -> When(AttackConfirmed, ....) if the my #315 PR will get approved first
fx.Creature, | ||
fx.When(fx.TurboRushCondition, func(card *match.Card, ctx *match.Context) { turboRush = true }), | ||
fx.When(fx.EndOfMyTurn, func(card *match.Card, ctx *match.Context) { turboRush = false }), | ||
fx.When(func(c *match.Card, ctx *match.Context) bool { return turboRush }, fx.WheneverThisAttacks(fx.ShowXShields(2))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WheneverThisAttacks -> When(AttackConfirmed, ....) if the my #315 PR will get approved first
fx.Creature, | ||
fx.When(fx.TurboRushCondition, func(card *match.Card, ctx *match.Context) { turboRush = true }), | ||
fx.When(fx.EndOfMyTurn, func(card *match.Card, ctx *match.Context) { turboRush = false }), | ||
fx.When(func(c *match.Card, ctx *match.Context) bool { return turboRush }, fx.WheneverThisAttacks(fx.SearchDeckTakeXCards(1))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WheneverThisAttacks -> When(AttackConfirmed, ....) if the my #315 PR will get approved first
fx.When(fx.TurboRushCondition, func(card *match.Card, ctx *match.Context) { turboRush = true }), | ||
fx.When(fx.EndOfMyTurn, func(card *match.Card, ctx *match.Context) { turboRush = false }), | ||
fx.When(func(c *match.Card, ctx *match.Context) bool { return turboRush }, | ||
fx.When(fx.WheneverThisAttacksAndIsntBlocked, func(card *match.Card, ctx *match.Context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WheneverThisAttacksAndIsntBlocked -> When(Battle,...) + block check if the my #315 PR will get approved first
c.ManaCost = 6 | ||
c.ManaRequirement = []string{civ.Darkness} | ||
|
||
c.Use(fx.Creature, fx.Doublebreaker, fx.WheneverThisAttacks(func(card *match.Card, ctx *match.Context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WheneverThisAttacks -> When(AttackConfirmed, ....) if the my #315 PR will get approved first
@@ -764,3 +790,15 @@ func Blocked(card *match.Card, ctx *match.Context) bool { | |||
} | |||
return false | |||
} | |||
|
|||
func WheneverThisAttacksAndIsntBlocked(card *match.Card, ctx *match.Context) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually ok implemented, just the name is confusing as it starts with "WheneverThisAttacks"
dependent on #307
Also add Sol Galla.