New card - Overwhelming Instinct

Hi,
I read through the tutorial and had a go at coding a card. It seems to work in game but I'd appreciate someone taking a look and letting me know if they see anything I should have done differently. The triggered ability is: Whenever you attack with three or more creatures, draw a card.
On the wording of the end of the trigger, could I instead have said:
"return true
else
return false
end
</TIGGER>
Lastly, I never saw it draw cards for an opponent - could that happen with this card or does the effectcontroller portion of the draw card stop that?
Thanks!!!
Phil
I read through the tutorial and had a go at coding a card. It seems to work in game but I'd appreciate someone taking a look and letting me know if they see anything I should have done differently. The triggered ability is: Whenever you attack with three or more creatures, draw a card.
- Code: Select all
<TRIGGER value="ATTACKERS_DECLARED">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_IS_ATTACKING, true )
if filter:CountStopAt(3) == 3 then
return true
end
return false
</TRIGGER>
<RESOLUTION_TIME_ACTION>
EffectController():DrawCards(1)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
On the wording of the end of the trigger, could I instead have said:
"return true
else
return false
end
</TIGGER>
Lastly, I never saw it draw cards for an opponent - could that happen with this card or does the effectcontroller portion of the draw card stop that?
Thanks!!!
Phil