Re: spDamageTgt - enhanced damage spell code
Very impressive stuff. (I only understand about half of of it, lol.) I bow to the script king, King Rob. 
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=1705
That's right: In quest mode Skred and Ire of Kaminari might be playable, if you're lucky enough to get some support cards (since burn is always powerful in limited). But in a generated Deck the probability that Skred is useful is almost nil.Rob Cashwalker wrote:But the great part of the structure is that we don't necessarily need to fully support Snow Mana (though I just saw the title of your post before clicking in to this one) or Splice onto Arcane in order for them to be somewhat relevant at some level.
Ahh, now we're getting somewhere. I could just as easily look for "Opp" in place of Tgt, and make a slight modification to the AI.Sloth wrote:OK Rob.
Another Thing: At the moment there is no card that uses the locations OppCtrl, InOppYard, InOppHand for count$. I think the only cards that could use OppCtrl are cards that only target opponents like Eternal Flame and Jovial Evil. (the other locations are not usable on any card).
So is it possible to have the keyword spDamageTgtO (O for Opponent).
spDamageTgtO could also be used for some simple cards like Burning Fields and Searing Flesh, as well as some not entirely accurately implemented cards like Kiss of Death, Stolen Grain and Vampiric Touch.
To be honest I just mentioned all cards (7) that could use the keyword spDamageTgtO, so it's not really that important.
if (TgtPlayer[0] == true)
{
setTargetPlayer(Constant.Player.Human);
return true; //shouldTgtP();
}
Flame Jet
1 R
Sorcery
no text
spDamageTgtP:3
Cycling:2
Ember Shot
6 R
Instant
Draw a card.
spDamageTgtCP:3
Cantrip
Zap
2 R
Instant
Draw a card.
spDamageTgtCP:1
Cantrip
Breath of Malfegor
3 B R
Instant
no text
spDamageTgtP:5
Flame Javelin
2/R 2/R 2/R
Instant
no text
spDamageTgtCP:4
Lava Axe
4 R
Sorcery
no text
spDamageTgtP:5
Bee Sting
3 G
Sorcery
no text
spDamageTgtCP:2
Cinder Storm
6 R
Sorcery
no text
spDamageTgtCP:7
Fire Ambush
1 R
Sorcery
no text
spDamageTgtCP:3
Ghostfire
2 R
Instant
no text
spDamageTgtCP:3
Ghostfire is colorless.
Lightning Blast
3 R
Instant
no text
spDamageTgtCP:4
Scorching Spear
R
Sorcery
no text
spDamageTgtCP:1
Searing Wind
8 R
Instant
no text
spDamageTgtCP:10
Tarfire
R
Tribal Instant Goblin
no text
spDamageTgtCP:2
Unyaro Bee Sting
3 G
Sorcery
no text
spDamageTgtCP:2
Lava Spike
R
Sorcery
no text
spDamageTgtP:3
Lightning Bolt
R
Instant
no text
spDamageTgtCP:3
Volcanic Hammer
1 R
Sorcery
no text
spDamageTgtCP:3
Shock
R
Instant
no text
spDamageTgtCP:2
Burning Fields
4 R
Sorcery
no text
spDamageTgtOpp:5
Searing Flesh
6 R
Sorcery
no text
spDamageTgtOpp:7
Kiss of Death
4 B B
Sorcery
no text
spDamageTgtOpp:4:Drawback$YouGainLife/4:Kiss of Death deals 4 damage to target opponent. You gain 4 life.:Kiss of Death - deals 4 damage; you gain 4 life.
Stolen Grain
4 B B
Sorcery
no text
spDamageTgtOpp:5:Drawback$YouGainLife/4:Stolen Grain deals 5 damage to target opponent. You gain 5 life.:Stolen Grain - deals 5 damage; you gain 5 life.
Vampiric Touch
2 B
Sorcery
no text
spDamageTgtOpp:2Drawback$YouGainLife/2:Vampiric Touch deals 2 damage to taqrget opponent and you gain 2 life.:Vampiric Touch - deals 2 damage and you gain 2 life.
Eternal Flame
2 R R
Sorcery
no text
spDamageTgtOpp:Count$NumTypeYouCtrl.Mountain:Drawback$DamageYou/X.HalfUp:Eternal Flame deals X damage to target opponent where X is the number of mountains you control. It deals half X damage, rounded up, to you.:Eternal Flame - deals X damage and half X damage to you.
Jovial Evil
2 B
Sorcery
no text
spDamageTgtOpp:Count$NumTypeWhiteOppCtrl.Creature/Twice:Jovial Evil deals X damage to target opponent, where X is twice the number of white creatures that player controls.:Jovial Evil - deals twice X damage.
Spark Spray
R
Instant
no text
spDamageTgtCP:1:Spark Spray deals 1 damage to target creature or player.
:Spark Spray - deals 1 damage
Cycling:RSunlance
W
Sorcery
no text
spDamageTgtC:3:Creature.nonWhite:Sunlance deals 3 damage to target nonwhite creature.:Sunlance - deals 3 damage`Rob Cashwalker wrote:Um... no, that is not a feature. I did consider it.
When/if I revise the entire keyword system, I'll make sure to include a target restriction clause to just about everything.