The code for Arrow Storm is incorrect. fizzle is a counterspell keyword. Also Arrow Storm is stated at the beginning of the primitive as not codable. This is due to not being able to cause damage to not be prevented.Darth Agnon wrote:There are still some mistakes in the KTK primitive: Monastery Swiftspear still hasn't got "Haste -- " in its card text, though it has been added as an ability. It still lists War-Name Aspirant as an uncoded card at the beginning, even though it has been coded. Also, Arrow Storm and Crackling Doom (apparently not coded, but not stated at the beginning of the primitive): The codes I have compiled for them are below. Hope this helps!
[card]
name=Arrow Storm
target=creature,player
auto=fizzle
auto=damage:4
auto=if thisturn(creature[attacking]|mybattlefield)~morethan~0 then cantblock target(player) && damage:5
text=Arrow Storm deals 4 damage to target creature or player. -- Raid - If you attacked with a creature this turn, Arrow Storm deals 5 damage to that creature or player and the damage can't be prevented.
mana={3}{R}{R}
type=Sorcery
[/card]
[card]
name=Crackling Doom
target=opponent
auto=damage:2
auto=ability$!sacrifice target(creature[power=power:highest:creature:myBattlefield]|myBattlefield) oneshot
text=Crackling Doom deals 2 damage to each opponent. Each opponent sacrifices a creature with the greatest power among creatures he or she controls.
mana={R}{W}{B}
type=Instant
[/card]
Darth Agnon
Planeswalker and Monster Hunter
I apparently forgot to code Crackling Doom as it is not in my primitive either. Your code is close the correct one and thanks for catching that. I will update the primitive on the previouse page. PAGE 9 which is the most up to date one I believe. This is the correct way to code Crackling Doom as it is each opponent and not Target Opponent. Also don't forget to close of your abilities if you have to use something like the ability$!blah blah blah !$ then always state who gets control of the ability afterwards ability$! blah blah blah !$ opponent
Thanks for the catch.
Code: Select all
[card]
name=Crackling Doom
auto=all(opponent) life:-2
auto=ability$!sacrifice notatarget(creature[power=power:highest:creature:myBattlefield]|myBattlefield)!$ opponent
text=Crackling Doom deals 2 damage to each opponent. Each opponent sacrifices a creature with the greatest power among creatures he or she controls.
mana={R}{W}{B}
type=Instant
[/card]