mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
DB/SAI: Convert Spore cpp script to SAI. Tnx malcrom for SAI
Closes #1630
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user