package com.hearthsim.card.minion.concrete;

import com.hearthsim.card.Deck;
import com.hearthsim.card.minion.Minion;
import com.hearthsim.card.minion.MinionSummonedInterface;
import com.hearthsim.model.PlayerSide;
import com.hearthsim.util.tree.HearthTreeNode;

public class Undertaker extends Minion implements MinionSummonedInterface {

    private static final boolean HERO_TARGETABLE = true;
    private static final byte SPELL_DAMAGE = 0;

    public Undertaker() {
        super();
        spellDamage_ = SPELL_DAMAGE;
        heroTargetable_ = HERO_TARGETABLE;

    }

    /**
     * Whenever a minion with Deathrattle is summoned, gain +1/+1
     * */
    @Override
    public HearthTreeNode minionSummonEvent(
            PlayerSide thisMinionPlayerSide,
            PlayerSide summonedMinionPlayerSide,
            Minion summonedMinion,
            HearthTreeNode boardState,
            Deck deckPlayer0,
            Deck deckPlayer1) {
        HearthTreeNode toRet = boardState;
        if (toRet != null && summonedMinion.hasDeathrattle() && thisMinionPlayerSide == summonedMinionPlayerSide) {
            this.addHealth((byte)1);
            this.addAttack((byte)1);
        }
        return toRet;
    }
}

@@ -644,11 +644,15 @@
 n +1
-/+1
+ Attack
 %0A   
@@ -1110,45 +1110,8 @@
 ) %7B%0A
-            this.addHealth((byte)1);%0A
     

Update Undertaker