Package mage.game.stack

Examples of mage.game.stack.StackAbility


    @Override
    public void watch(GameEvent event, Game game) {
        if (event.getType() == GameEvent.EventType.ACTIVATED_ABILITY) {
            StackObject stackObject = game.getStack().getStackObject(event.getTargetId());
            if (stackObject != null) {
                StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(event.getTargetId());
                if (stackAbility != null && stackAbility.getAbilityType() == AbilityType.ACTIVATED) {
                    this.activatedThisTurn.add(stackAbility.getOriginalId());
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of mage.game.stack.StackAbility

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.