It is currently 22 Jan 2019, 16:25
   
Text Size

Coding Squirrellink (Earl of Squirrel)

Moderators: Xander9009, CCGHQ Admins

Coding Squirrellink (Earl of Squirrel)

Postby WillPowers86 » 19 Dec 2018, 02:32

I thought I had it, but the Squirrellink ability doesn't seem to be working. The card shows that it's trying to do something when I assign it as an attacker, but no tokens are generated.

| Open
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever this creature deals damage, put that many 1/1 green Squirrel creature tokens onto the battlefield.]]></LOCALISED_TEXT>
<TRIGGER value="SOURCE_DEALS_DAMAGE" to_zone="ZONE_ANY" from_zone="ZONE_ANY" damage_type="combat">
if EffectSource() ~= nil then
return TriggerObject() == EffectSource():GetParent()
end
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local parent = EffectSource():GetParent()
if parent ~= nil then
local damage = Damage():GetAmount()
if damage ~= nil then
MTG():PutTokensOntoBattlefield( "TOKEN_SQUIRREL_C_1_1_G_CW_1", damage, EffectController() )
end
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TOKEN_REGISTRATION reservation="1" type="TOKEN_SQUIRREL_C_1_1_G_CW_1" />
<HELP title="MORE_INFO_BADGE_TITLE_4" body="MORE_INFO_BADGE_BODY_4" zone="ZONE_ANY" />
WillPowers86
 
Posts: 1
Joined: 19 Dec 2018, 02:28
Has thanked: 0 time
Been thanked: 0 time

Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form