import java.util.*; public class Fake2 extends Illusions { String target; String spellName = "Illusion of the Beast"; int manaCost = 50; int level= 4; String[] targets = {}; String description = "The spell will create an Illusionary dragon to be your loyal servant"; /** * Should as the string argument take city#cityname or dragon#dragonname */ public void cast(Fod game, int playerNr, String arg) { System.out.println("Player "+playerNr+" casts "+spellName+"on "+arg); //Hemstaden Area a =((City)game.cities.get(game.players[playerNr].homeCity)).getArea(game.Map); if(a!=null){ Dragon d = new Dragon(a); d.fake = true; d.Health = 50; d.Owner = (short)playerNr; d.Looks[1] = 0; game.dragons.put(d.name,d); } } ////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; } }