*Fix build.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-08 13:37:11 -05:00
parent 74d553bc4c
commit ce9211a5bc
5 changed files with 10 additions and 14 deletions
@@ -91,7 +91,7 @@ bool GossipSelect_npc_jaina_proudmoore(Player *player, Creature *_Creature, uint
{ {
if(_Creature->GetMap()->GetPlayersCountExceptGMs() < MINPLAYERS && !player->isGameMaster()) if(_Creature->GetMap()->GetPlayersCountExceptGMs() < MINPLAYERS && !player->isGameMaster())
{ {
_Creature->Say("Did you come to die with me?",0,0); _Creature->MonsterSay("Did you come to die with me?",0,0);
return true; return true;
} }
hyjalAI* ai = ((hyjalAI*)_Creature->AI()); hyjalAI* ai = ((hyjalAI*)_Creature->AI());
@@ -169,7 +169,7 @@ bool GossipSelect_npc_thrall(Player *player, Creature *_Creature, uint32 sender,
{ {
if(_Creature->GetMap()->GetPlayersCountExceptGMs() < MINPLAYERS && !player->isGameMaster())//to stop idiot farmers if(_Creature->GetMap()->GetPlayersCountExceptGMs() < MINPLAYERS && !player->isGameMaster())//to stop idiot farmers
{ {
_Creature->Say("Did you come to die with me?",0,0); _Creature->MonsterSay("Did you come to die with me?",0,0);
return true; return true;
} }
hyjalAI* ai = ((hyjalAI*)_Creature->AI()); hyjalAI* ai = ((hyjalAI*)_Creature->AI());
@@ -957,7 +957,7 @@ void hyjalAI::HideNearPos(float x, float y)
// First get all creatures. // First get all creatures.
std::list<Creature*> creatures; std::list<Creature*> creatures;
Trinity::AllFriendlyCreaturesInGrid creature_check(m_creature); Trinity::AllFriendlyCreaturesInGrid creature_check(m_creature);
Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid> creature_searcher(creatures, creature_check); Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid> creature_searcher(m_creature, creatures, creature_check);
TypeContainerVisitor TypeContainerVisitor
<Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>, <Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>,
GridTypeMapContainer> creature_visitor(creature_searcher); GridTypeMapContainer> creature_visitor(creature_searcher);
@@ -985,7 +985,7 @@ void hyjalAI::RespawnNearPos(float x, float y)
cell.SetNoCreate(); cell.SetNoCreate();
Trinity::RespawnDo u_do; Trinity::RespawnDo u_do;
Trinity::WorldObjectWorker<Trinity::RespawnDo> worker(u_do); Trinity::WorldObjectWorker<Trinity::RespawnDo> worker(m_creature, u_do);
TypeContainerVisitor<Trinity::WorldObjectWorker<Trinity::RespawnDo>, GridTypeMapContainer > obj_worker(worker); TypeContainerVisitor<Trinity::WorldObjectWorker<Trinity::RespawnDo>, GridTypeMapContainer > obj_worker(worker);
CellLock<GridReadGuard> cell_lock(cell, p); CellLock<GridReadGuard> cell_lock(cell, p);
cell_lock->Visit(cell_lock, obj_worker, *m_creature->GetMap()); cell_lock->Visit(cell_lock, obj_worker, *m_creature->GetMap());
@@ -994,7 +994,7 @@ void hyjalAI::WaypointReached(uint32 i)
{ {
if(i == 1 || (i == 0 && m_creature->GetEntry() == THRALL)) if(i == 1 || (i == 0 && m_creature->GetEntry() == THRALL))
{ {
m_creature->Yell("Hurry, we don't have much time",0,0); m_creature->MonsterYell("Hurry, we don't have much time",0,0);
WaitForTeleport = true; WaitForTeleport = true;
TeleportTimer = 15000; TeleportTimer = 15000;
//do some talking //do some talking
@@ -1007,7 +1007,7 @@ void hyjalAI::WaypointReached(uint32 i)
// First get all creatures. // First get all creatures.
std::list<Creature*> creatures; std::list<Creature*> creatures;
Trinity::AllFriendlyCreaturesInGrid creature_check(m_creature); Trinity::AllFriendlyCreaturesInGrid creature_check(m_creature);
Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid> creature_searcher(creatures, creature_check); Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid> creature_searcher(m_creature, creatures, creature_check);
TypeContainerVisitor TypeContainerVisitor
<Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>, <Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>,
GridTypeMapContainer> creature_visitor(creature_searcher); GridTypeMapContainer> creature_visitor(creature_searcher);
@@ -1049,7 +1049,7 @@ void hyjalAI::DoOverrun(uint32 faction, const uint32 diff)
std::list<Creature*> creatures; std::list<Creature*> creatures;
Trinity::AllFriendlyCreaturesInGrid creature_check(m_creature); Trinity::AllFriendlyCreaturesInGrid creature_check(m_creature);
Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid> creature_searcher(creatures, creature_check); Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid> creature_searcher(m_creature, creatures, creature_check);
TypeContainerVisitor TypeContainerVisitor
<Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>, <Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>,
GridTypeMapContainer> creature_visitor(creature_searcher); GridTypeMapContainer> creature_visitor(creature_searcher);
@@ -113,8 +113,7 @@ struct TRINITY_DLL_DECL instance_mount_hyjal : public ScriptedInstance
void OpenDoor(uint64 DoorGUID, bool open) void OpenDoor(uint64 DoorGUID, bool open)
{ {
if(GameObject *Door = instance->GetGameObjectInMap(DoorGUID)) HandleGameObject(DoorGUID, open, NULL);
Door->SetUInt32Value(GAMEOBJECT_STATE, open ? 0 : 1);
} }
void OnCreatureCreate(Creature *creature, uint32 creature_entry) void OnCreatureCreate(Creature *creature, uint32 creature_entry)
+1 -1
View File
@@ -2225,7 +2225,7 @@ void Spell::cancel()
return; return;
SetReferencedFromCurrent(false); SetReferencedFromCurrent(false);
if(m_selfContainer) if(m_selfContainer && *m_selfContainer == this)
*m_selfContainer = NULL; *m_selfContainer = NULL;
uint32 oldState = m_spellState; uint32 oldState = m_spellState;
+1 -4
View File
@@ -3218,10 +3218,7 @@ void Unit::_DeleteAuras()
{ {
// remove auras only for non-aoe spells or when chanelled aura is removed // remove auras only for non-aoe spells or when chanelled aura is removed
// because aoe spells don't require aura on target to continue // because aoe spells don't require aura on target to continue
{ caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel();
caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel();
caster->m_currentSpells[CURRENT_CHANNELED_SPELL]=NULL;
}
} }
if(caster->GetTypeId()==TYPEID_UNIT && ((Creature*)caster)->isTotem() && ((Totem*)caster)->GetTotemType()==TOTEM_STATUE) if(caster->GetTypeId()==TYPEID_UNIT && ((Creature*)caster)->isTotem() && ((Totem*)caster)->GetTotemType()==TOTEM_STATUE)