return false;
}
public boolean enemyCast(int from) {
Random rand = new Random();
Spell s = Enemy.knownSpells.get(rand.nextInt(Enemy.knownSpells.size()));
Point target = getTargetPos(from, s);
jPanel.add(s.getComponent());
jPanel.setComponentZOrder(s.getComponent(), 0);
jPanel.validate();
if (target != null) {
s.cast(target, getDefaultStartPos(s), jPanel, false);
return true;
}
return false;
}