mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Add Shaman's Trance
This commit is contained in:
@@ -265,7 +265,10 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
||||
public SpellAbility getAbilityToPlay(final Card hostCard, final List<SpellAbility> abilities,
|
||||
final ITriggerEvent triggerEvent) {
|
||||
// make sure another human player can't choose opponents cards just because he might see them
|
||||
if (triggerEvent != null && !hostCard.isInZone(ZoneType.Battlefield) && !hostCard.getOwner().equals(player) && !hostCard.getController().equals(player) && hostCard.mayPlay(player).size() == 0) {
|
||||
if (triggerEvent != null && !hostCard.isInZone(ZoneType.Battlefield) && !hostCard.getOwner().equals(player) &&
|
||||
!hostCard.getController().equals(player) && hostCard.mayPlay(player).size() == 0 &&
|
||||
// If player cast Shaman's Trance, they can play spells from any Graveyard (if other effects allow it to be cast)
|
||||
(!player.hasKeyword("Shaman's Trance") || !hostCard.isInZone(ZoneType.Graveyard))) {
|
||||
return null;
|
||||
}
|
||||
spellViewCache = SpellAbilityView.getMap(abilities);
|
||||
|
||||
Reference in New Issue
Block a user