*Fix build.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-29 20:36:02 -05:00
parent 4b4f472357
commit 5d613ecb6f
2 changed files with 2 additions and 16 deletions

View File

@@ -331,7 +331,7 @@ struct TRINITY_DLL_DECL boss_kalecgosKJAI : public ScriptedAI
cell.SetNoCreate();
std::list<GameObject*> orbList;
AllOrbsInGrid check;
Trinity::GameObjectListSearcher<AllOrbsInGrid> searcher(orbList, check);
Trinity::GameObjectListSearcher<AllOrbsInGrid> searcher(me, orbList, check);
TypeContainerVisitor<Trinity::GameObjectListSearcher<AllOrbsInGrid>, GridTypeMapContainer> visitor(searcher);
CellLock<GridReadGuard> cell_lock(cell, pair);
cell_lock->Visit(cell_lock, visitor, *(m_creature->GetMap()));
@@ -855,7 +855,7 @@ struct TRINITY_DLL_DECL mob_hand_of_the_deceiverAI : public ScriptedAI
}
void UpdateAI(const uint32 diff){
if(!InCombat)
if(!me->isInCombat())
DoCast(m_creature, SPELL_SHADOW_CHANNELING);
if(!UpdateVictim())

View File

@@ -119,20 +119,6 @@ struct TRINITY_DLL_DECL instance_sunwell_plateau : public ScriptedInstance
return NULL;
}
void HandleGameObject(uint64 guid, uint32 state)
{
Player *player = GetPlayerInMap();
if (!player || !guid)
{
debug_log("TSCR: Sunwell Plateau: HandleGameObject fail");
return;
}
if (GameObject *go = GameObject::GetGameObject(*player,guid))
go->SetGoState(state);
}
void OnCreatureCreate(Creature* creature, uint32 entry)
{
switch(entry)