Effect Monstrous Growth

First the effect will be set up from the "Card Played"-script like:


/ / start Monstrous Growth
/ /defined in effect (with target player set to null)
int debugLevel = 3;
D.addLog("4305: Monstrous Growth entered!",debugLevel);


if (targetCard == null)
{
          if (cancled)
          {
                    D.addLog("4305: No creature selected, nothing to buf...",debugLevel);
                    bRet=true;
                    return;
          }

          D.addLog("4305: Chose a target creature!",debugLevel);
          match.askForCreatureFromCreature(player, card, ev);
          match.setPlayerCardMessage(player,"Select a target creature to buf");
          bRet=false;
          return;
}

match.setEffect(card, targetCard, null,0);
bRet=true;
D.addLog("4305: Monstrous Growth leaving!",debugLevel);
/ / end Monstrous Growth


From the setEffect(..) method in match the script for "CARD APPLY EFFECT KEY" will be called, here:


/ / start Monstrous Growth
/ /defined in effect (with target player set to null)
int debugLevel = 3;
D.addLog("4305: Monstrous Growth Effekt apply entered!",debugLevel);

effect.expireType = TemporaryEffect.EFFECT DURATION TILL END OF TURN;
effect.effectVisibleAsCard=true;
effect.targetCard.addIntData(Card.TEMP POWER MOD, 4);
effect.targetCard.addIntData(Card.TEMP TOUGHNESS MOD, 4);

L.addLog(effect.targetCard+" gained +4/+4 till end of turn.");

D.addLog("4305: Monstrous Growth Effekt apply leaving!",debugLevel);
/ / end Monstrous Growth


To finish the example completely - here the script for "CARD REMOVE EFFECT KEY"


if (effect.targetCard != null)
{

           effect.targetCard.subIntData(Card.TEMP POWER MOD, 4);
           effect.targetCard.subIntData(Card.TEMP TOUGHNESS MOD, 4);

           L.addLog(effect.targetCard+" lost: +4/+4");
}
else
{
           D.addLog("4305: effect deinitialized!",3);
}