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
by 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)
.
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)
.
- gp66
- Posts: 21
- Joined: 26 Apr 2020, 23:37
- Has thanked: 0 time
- Been thanked: 0 time
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 17 guests