SpellDef spell = EntityHandler.getSpellDef(idx);
if (player.getCurStat(6) < spell.getReqLevel()) {
player.setSuspiciousPlayer(true);
player.getActionSender().sendMessage(
"Your magic ability is not high enough for this spell.");
player.resetPath();
return;
}
if (!Formulae.castSpell(spell, player.getCurStat(6),
player.getMagicPoints())) {
player.getActionSender().sendMessage(