Creating Card Card Coding Help

While I still have not been able to use the xmls that I've created, I am playing around with the coding.
I'm trying to make the card Shrine of Burning rage, and other cards similar to that one.
The card has: "At the beginning of your upkeep or whenever you cast a red spell, put a charge counter on Shrine of Burning Rage."
I was wondering if I make two triggers or just somehow combine both of them.
Does this ability activate once, either at the beginning of my upkeep or when I cast a red spell. Or does it activate at the beginning and also whenever I cast a red spell?
This is what I have
I'm trying to make the card Shrine of Burning rage, and other cards similar to that one.
The card has: "At the beginning of your upkeep or whenever you cast a red spell, put a charge counter on Shrine of Burning Rage."
I was wondering if I make two triggers or just somehow combine both of them.
Does this ability activate once, either at the beginning of my upkeep or when I cast a red spell. Or does it activate at the beginning and also whenever I cast a red spell?
This is what I have
- Code: Select all
<TRIGGERED_ABILITY auto_skip="1" filter_zone="ZONE_IN_PLAY>
-Some localised text-
return TriggerObject():GetCardType():Test( CARD_TYPE_RED ) ~=0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
EffectSource():AddCounters( MTG():ChargeCounters(), 1 )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY filter_zone="ZONE_IN_PLAY"
<Trigger value="BEGINNING_OF_STEP" simple_qualifier="controller>
return ( EffectController():MyTurn() ~= 0 ) and ( MTG():GetStep() == STEP_UPKEEP )
</TRIGGER>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
EffectSource():AddCounters( MTG():ChargeCounters(), 1 )
end
</RESOLUTION_TIME_ACTION>