private function checkNPCSpells(SR_NPC $npc) { foreach ($npc->getNPCSpells() as $spell => $level) { if (false === SR_Spell::getSpell($spell)) { die(sprintf('The NPC %s has an unknown spell: %s.', get_class($npc), $spell)); } } }
private function checkNPCSpells(SR_NPC $npc) { foreach ($npc->getNPCSpells() as $spell => $level) { if (false === SR_Spell::getSpell($spell)) { die(sprintf('The NPC %s has an unknown spell: %s.', get_class($npc), $spell)); } } }