mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
* Fixed bug that prevented to use mana abilities manually.
This commit is contained in:
parent
305712806c
commit
7ac0fe65ef
3 changed files with 10 additions and 4 deletions
|
|
@ -1224,8 +1224,11 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
if (canUse || ability.getAbilityType().equals(AbilityType.SPECIAL_ACTION)) {
|
||||
if (ability.getZone().match(zone)) {
|
||||
if (ability instanceof ActivatedAbility) {
|
||||
if (canPlay(((ActivatedAbility) ability), availableMana, object, game)) {
|
||||
// if (((ActivatedAbility) ability).canActivate(playerId, game)) {
|
||||
if (ability instanceof ManaAbility) {
|
||||
if (((ActivatedAbility) ability).canActivate(playerId, game)) {
|
||||
useable.put(ability.getId(), (ActivatedAbility) ability);
|
||||
}
|
||||
} else if (canPlay(((ActivatedAbility) ability), availableMana, object, game)) {
|
||||
useable.put(ability.getId(), (ActivatedAbility) ability);
|
||||
}
|
||||
} else if (ability instanceof AlternativeSourceCosts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue