Search in sources :

Example 1 with SkeletonMinion

use of Minions.Undead.SkeletonMinion in project cardgame1 by joey101937.

the class SkeletonArmySpell method cast.

@Override
public int cast(Minion target) {
    if (!canAfford())
        return 0;
    for (int i = 0; i < 4; i++) {
        owner.minions.add(new SkeletonMinion(this));
        Main.wait(AI.AI.speed / 4);
    }
    owner.resource -= cost;
    owner.hand.remove(this);
    TrapListener.onPlay(this);
    return 1;
}
Also used : SkeletonMinion(Minions.Undead.SkeletonMinion)

Aggregations

SkeletonMinion (Minions.Undead.SkeletonMinion)1