It is currently 23 Apr 2024, 22:57
   
Text Size

Get the spell or ability selection by player

Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, 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: 21
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 4 guests


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 4 guests

Login Form