Core/Script: Remove Scourge Prisoner cpp script, handled by SAI

This commit is contained in:
Vincent-Michael
2012-11-25 18:18:03 +01:00
parent c44c6248ec
commit 2a845355eb

View File

@@ -29,7 +29,6 @@ npc_corastrasza
npc_jenny
npc_sinkhole_kill_credit
npc_khunok_the_behemoth
npc_scourge_prisoner
mob_nerubar_victim
npc_keristrasza
npc_nesingwary_trapper
@@ -386,41 +385,6 @@ public:
}
};
/*######
## npc_scourge_prisoner
######*/
enum eScourgePrisoner
{
GO_SCOURGE_CAGE = 187867
};
class npc_scourge_prisoner : public CreatureScript
{
public:
npc_scourge_prisoner() : CreatureScript("npc_scourge_prisoner") { }
struct npc_scourge_prisonerAI : public ScriptedAI
{
npc_scourge_prisonerAI(Creature* creature) : ScriptedAI (creature){}
void Reset()
{
me->SetReactState(REACT_PASSIVE);
if (GameObject* go = me->FindNearestGameObject(GO_SCOURGE_CAGE, 5.0f))
if (go->GetGoState() == GO_STATE_ACTIVE)
go->SetGoState(GO_STATE_READY);
}
};
CreatureAI* GetAI(Creature* creature) const
{
return new npc_scourge_prisonerAI(creature);
}
};
/*######
## npc_jenny
######*/
@@ -2548,7 +2512,6 @@ void AddSC_borean_tundra()
new npc_corastrasza();
new npc_iruk();
new mob_nerubar_victim();
new npc_scourge_prisoner();
new npc_jenny();
new npc_fezzix_geartwist();
new npc_nesingwary_trapper();