public void onAction(Player player, RPAction action) {
//base object is always the player sending the action
action.put("baseobject", player.getID().getObjectID());
Entity target = EntityHelper.entityFromTargetName(action.get(TARGET), player);
Spell spell = (Spell) EntityHelper.entityFromSlot(player, action);
spell.cast(player, target);
}
}