It is currently 07 Jul 2020, 03:23
   
Text Size

Get the spell or ability selection by player

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

Get the spell or ability selection by player

Postby gp66 » 26 May 2020, 17:14

I am trying to learn Java and Xmage and am hoping for a little help.

I borrowed code from Bestow and Riot to get a mutate creature to attach to a non-Human controlled creature.
I know this is not how mutate should work but I'm using this as an exercise to learn xmage code.

How do I Get the 'spell or ability' selection chosen by player to cast a card?
I tried many ways to get this, getManaCost(), getSpellAbilityType(), etc, but can't find the solution.

Any help in pointing me in the right direction would be greatly appreciated.

Thanks in advance,

Gary

p.s. I am new user and site won't let me post the full code snippet.
public boolean replaceEvent(GameEvent event, Ability source, Game game)

.
Attachments
retrieve-spell-or-ability-selection.png
gp66
 
Posts: 3
Joined: 26 Apr 2020, 23:37
Has thanked: 0 time
Been thanked: 0 time

Return to Developers Talk

Who is online

Users browsing this forum: No registered users and 2 guests


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 1371 on 09 Feb 2020, 16:22

Users browsing this forum: No registered users and 2 guests

Login Form