Issue with Custom Card Script Failing to Execute

Helllo,
I am currently working on a custom card script for MTG Forge ; and I am facing an issue where the script fails to execute properly. Below are the details:
Card Name: Mystic Apprentice
Script:
<CARD>
<NAME>Mystic Apprentice</NAME>
<TYPE>Creature</TYPE>
<SUBTYPE>Human Wizard</SUBTYPE>
<COST>{1}{U}</COST>
<POWER>2</POWER>
<TOUGHNESS>2</TOUGHNESS>
<TEXT>
Whenever Mystic Apprentice enters the battlefield, draw a card.
</TEXT>
<CODE>
AB$ Draw | Cost$ 0 | NumCards$ 1 | SubAbility$ SBTrigger
SB$ Trigger | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ DrawCard
SB$ DrawCard | NumCards$ 1
</CODE>
</CARD>
When I test the card ; it appears on the battlefield but the draw effect doesn't trigger. There are no errors displayed in the console; and I am not sure where the script is going wrong.
I have Verified the syntax of the script. Checked other similar card scripts to ensure consistency. Restarted MTG Forge to clear any cached data.
Could anyone help me identify what might be wrong with this script or suggest debugging steps I could take?
Thanks in advance for your assistance!
Thank you
seleeenaa
I am currently working on a custom card script for MTG Forge ; and I am facing an issue where the script fails to execute properly. Below are the details:
Card Name: Mystic Apprentice
Script:
<CARD>
<NAME>Mystic Apprentice</NAME>
<TYPE>Creature</TYPE>
<SUBTYPE>Human Wizard</SUBTYPE>
<COST>{1}{U}</COST>
<POWER>2</POWER>
<TOUGHNESS>2</TOUGHNESS>
<TEXT>
Whenever Mystic Apprentice enters the battlefield, draw a card.
</TEXT>
<CODE>
AB$ Draw | Cost$ 0 | NumCards$ 1 | SubAbility$ SBTrigger
SB$ Trigger | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ DrawCard
SB$ DrawCard | NumCards$ 1
</CODE>
</CARD>
When I test the card ; it appears on the battlefield but the draw effect doesn't trigger. There are no errors displayed in the console; and I am not sure where the script is going wrong.
I have Verified the syntax of the script. Checked other similar card scripts to ensure consistency. Restarted MTG Forge to clear any cached data.
Could anyone help me identify what might be wrong with this script or suggest debugging steps I could take?
Thanks in advance for your assistance!
Thank you
seleeenaa