mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 21:02:14 +01:00
*Fix build.
--HG-- branch : trunk
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user