import java.util.*; public class KillCity4 extends Necromancy { String spellName = "Black Plague"; int manaCost = 50; int level = 5; String description = "You start the Black Plague in a city. You intend, of course, to wipe out the city completely with one single blow!"; String[] targets = {"city"}; String target; public void cast(Fod game, int playerNr, String arg) { System.out.println("-->Player "+playerNr+" casts "+spellName+" on "+arg); Object o = game.cities.get(arg); if(o!=null){ City c = (City)o; if (c.Development<75 && !c.isHomeCity(game.players)) c.increasePopulation(-(50+Dice.rand(25))); } } ////Primitves public String getSpellName(){ return spellName; } public String getDescription(){ return description; } public int getManaCost(){ return manaCost; } public int getLevel(){ return level; } public String[] getTargetProfile(){ return targets; } public String getTarget(){ return target; } public String setTarget(String t){ target = t; return target; } }