Mode parameter of Effect.getText
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
2 posts
• Page 1 of 1
Mode parameter of Effect.getText
by emerald000 » 24 Jul 2014, 08:57
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.
-
emerald000 - Posts: 92
- Joined: 07 Jul 2014, 16:55
- Has thanked: 1 time
- Been thanked: 9 times
Re: Mode parameter of Effect.getText
by LevelX » 24 Jul 2014, 11:47
There are modal spells that made such a structure neccessary.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.
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?
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests