Page 1 of 1

Mode parameter of Effect.getText

PostPosted: 24 Jul 2014, 08:57
by emerald000
Is there any reason why there is a Mode parameter to the getText method of Effect? Because I would need to get the text of an effect and I am quite confused about what a mode has to do with anything.

Re: Mode parameter of Effect.getText

PostPosted: 24 Jul 2014, 11:47
by LevelX
emerald000 wrote:Is there any reason why there is a Mode parameter to the getText method of Effect? Because I would need to get the text of an effect and I am quite confused about what a mode has to do with anything.
There are modal spells that made such a structure neccessary.
So the effect text can be dependant from the choosen mode(s). If he gets for example a target text (targets are mode dependant).

http://mtgsalvation.gamepedia.com/Modal

In fact the majority of all spells has only one mode and wouldn't need this more complicated structure. But that's how IT is, the most efford need things beeing the minority.

Normally you get the active modes (99,x % only one) with ability.getModes().getSelectedModes(), if a spell is on the stack.

Where / when do you need the effect text?