public override void makeUpForReaderError(Card user, HearthstoneBoard board)
 {
     foreach (Card c in board.getAdjacents(user))
     {
         c.addAttack(-1);
     }
 }
Exemple #2
0
    public override void doAction(Action cause, Card user, HearthstoneBoard board, List <Card> alwaysUse)
    {
        board.printDebugMessage("Performing action: cleave attack: " + user, HearthstoneBoard.OutputPriority.EFFECTTRIGGERS);
        Card target = ((AttackingAction)cause).target;
        var  adj    = board.getAdjacents(target);

        foreach (Card c in adj)
        {
            user.causeDamageToTarget(c, board, user.getAttack(board));
        }
    }
    public int getAttack(HearthstoneBoard board)
    {
        foreach (Card c in board.getAdjacents(this))
        {
            c.performAdjacantEffects(this, board);
        }
        foreach (Card c in board.getBoardFromMinion(this))
        {
            if (c != this)
            {
                c.performedAction(new CardLookingForAtkBonusAction(this), board);
            }
        }
        performedAction(new GetDamageAction(), board);
        int result = attack + tempAttackBonus;

        board.printDebugMessage("damagebonus: " + tempAttackBonus + "on " + getReadableName(), HearthstoneBoard.OutputPriority.COMMUNICATION);
        tempAttackBonus = 0;
        if (board.DeathwingPlayer > 0)
        {
            result += 2;
        }
        return(result);
    }