It is currently 10 Sep 2025, 11:34
   
Text Size

Mode parameter of Effect.getText

Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins

Mode parameter of Effect.getText

Postby 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.
User avatar
emerald000
 
Posts: 92
Joined: 07 Jul 2014, 16:55
Has thanked: 1 time
Been thanked: 9 times

Re: Mode parameter of Effect.getText

Postby LevelX » 24 Jul 2014, 11:47

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?
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times


Return to Developers Talk

Who is online

Users browsing this forum: No registered users and 2 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 2 guests

Login Form