DB/SAI: Convert Spore cpp script to SAI. Tnx malcrom for SAI

Closes #1630
This commit is contained in:
tobmaps
2011-05-28 16:51:36 +07:00
parent df20ba9956
commit 2de87eaaab
3 changed files with 7 additions and 29 deletions

View File

@@ -92,35 +92,7 @@ public:
};
enum SporeSpells
{
SPELL_FUNGAL_CREEP = 29232
};
class mob_loatheb_spore : public CreatureScript
{
public:
mob_loatheb_spore() : CreatureScript("mob_loatheb_spore") { }
CreatureAI* GetAI(Creature* pCreature) const
{
return new mob_loatheb_sporeAI (pCreature);
}
struct mob_loatheb_sporeAI : public ScriptedAI
{
mob_loatheb_sporeAI(Creature *c) : ScriptedAI(c) {}
void JustDied(Unit* killer)
{
DoCast(killer, SPELL_FUNGAL_CREEP);
}
};
};
void AddSC_boss_loatheb()
{
new boss_loatheb();
new mob_loatheb_spore();
}