use of cardgame1.Sticker in project cardgame1 by joey101937.
the class CarnifishMinion method onSummon.
@Override
public void onSummon() {
for (Minion m : owner.minions.getOccupants()) {
if (m.name.equals("Baitfish")) {
Sticker s = new Sticker(SpriteHandler.bloodMedium, this, AI.AI.speed);
Main.wait(AI.AI.speed);
m.destroy();
}
}
}
use of cardgame1.Sticker in project cardgame1 by joey101937.
the class SeaSerpentMinion method onSummon.
@Override
public void onSummon() {
Sticker s = new Sticker(SpriteHandler.bloodMedium, this, AI.AI.speed / 2);
Main.wait(AI.AI.speed / 2);
for (Minion m : owner.minions.getOccupants()) {
if (m.tribe != Tribe.Fish) {
m.takeDamage(1);
}
}
for (Minion m : owner.opponent.minions.getOccupants()) {
if (m.tribe != Tribe.Fish) {
m.takeDamage(1);
}
}
}
use of cardgame1.Sticker in project cardgame1 by joey101937.
the class ThrasherMinion method onTurnEnd.
@Override
public void onTurnEnd() {
if (isFrozen || isSilenced) {
// do not attack if frozen
isFrozen = false;
return;
}
Sticker s = new Sticker(SpriteHandler.bloodMedium, this, AI.AI.speed / 2);
Main.wait(AI.AI.speed / 2);
int roll = (int) (Math.random() * (owner.opponent.minions.numOccupants() + 1));
if (roll >= owner.opponent.minions.numOccupants()) {
owner.opponent.takeDamage(attack);
return;
}
Minion target = owner.opponent.minions.getOccupants().get(roll);
this.refresh();
this.attack(target);
Main.wait(AI.AI.speed / 2);
}
use of cardgame1.Sticker in project cardgame1 by joey101937.
the class SwollowTrap method onSummon.
@Override
public void onSummon(Minion m) {
if (m.owner != owner && m.health < 3) {
Sticker reveal = new Sticker(parent, 1700, 200, AI.AI.speed * 6);
Sticker blood = new Sticker(SpriteHandler.bloodMedium, m, AI.AI.speed * 6);
Main.wait(AI.AI.speed * 6);
m.silence();
m.destroy();
owner.traps.remove(this);
m.destroy();
}
}
use of cardgame1.Sticker in project cardgame1 by joey101937.
the class ZombieTrap method onSummon.
@Override
public void onSummon(Minion m) {
if (m.owner == this.owner || !active) {
return;
}
active = false;
Sticker reveal = new Sticker(parent, 1700, 200, AI.AI.speed * 6);
Sticker skull = new Sticker(SpriteHandler.skullEffect, m, AI.AI.speed * 6);
Main.wait(AI.AI.speed * 6);
m.destroy();
m.owner.minions.add(new ZombieMinion(m.owner, 3, 1));
owner.traps.remove(this);
}
Aggregations