*Fix build.
--HG-- branch : trunk
This commit is contained in:
@@ -91,7 +91,7 @@ bool GossipSelect_npc_jaina_proudmoore(Player *player, Creature *_Creature, uint
|
||||
{
|
||||
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;
|
||||
}
|
||||
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
|
||||
{
|
||||
_Creature->Say("Did you come to die with me?",0,0);
|
||||
_Creature->MonsterSay("Did you come to die with me?",0,0);
|
||||
return true;
|
||||
}
|
||||
hyjalAI* ai = ((hyjalAI*)_Creature->AI());
|
||||
|
||||
@@ -957,7 +957,7 @@ void hyjalAI::HideNearPos(float x, float y)
|
||||
// First get all creatures.
|
||||
std::list<Creature*> creatures;
|
||||
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
|
||||
<Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>,
|
||||
GridTypeMapContainer> creature_visitor(creature_searcher);
|
||||
@@ -985,7 +985,7 @@ void hyjalAI::RespawnNearPos(float x, float y)
|
||||
cell.SetNoCreate();
|
||||
|
||||
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);
|
||||
CellLock<GridReadGuard> cell_lock(cell, p);
|
||||
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))
|
||||
{
|
||||
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;
|
||||
TeleportTimer = 15000;
|
||||
//do some talking
|
||||
@@ -1007,7 +1007,7 @@ void hyjalAI::WaypointReached(uint32 i)
|
||||
// First get all creatures.
|
||||
std::list<Creature*> creatures;
|
||||
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
|
||||
<Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>,
|
||||
GridTypeMapContainer> creature_visitor(creature_searcher);
|
||||
@@ -1049,7 +1049,7 @@ void hyjalAI::DoOverrun(uint32 faction, const uint32 diff)
|
||||
|
||||
std::list<Creature*> creatures;
|
||||
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
|
||||
<Trinity::CreatureListSearcher<Trinity::AllFriendlyCreaturesInGrid>,
|
||||
GridTypeMapContainer> creature_visitor(creature_searcher);
|
||||
|
||||
@@ -113,8 +113,7 @@ struct TRINITY_DLL_DECL instance_mount_hyjal : public ScriptedInstance
|
||||
|
||||
void OpenDoor(uint64 DoorGUID, bool open)
|
||||
{
|
||||
if(GameObject *Door = instance->GetGameObjectInMap(DoorGUID))
|
||||
Door->SetUInt32Value(GAMEOBJECT_STATE, open ? 0 : 1);
|
||||
HandleGameObject(DoorGUID, open, NULL);
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature *creature, uint32 creature_entry)
|
||||
|
||||
+1
-1
@@ -2225,7 +2225,7 @@ void Spell::cancel()
|
||||
return;
|
||||
|
||||
SetReferencedFromCurrent(false);
|
||||
if(m_selfContainer)
|
||||
if(m_selfContainer && *m_selfContainer == this)
|
||||
*m_selfContainer = NULL;
|
||||
|
||||
uint32 oldState = m_spellState;
|
||||
|
||||
+1
-4
@@ -3218,10 +3218,7 @@ void Unit::_DeleteAuras()
|
||||
{
|
||||
// remove auras only for non-aoe spells or when chanelled aura is removed
|
||||
// because aoe spells don't require aura on target to continue
|
||||
{
|
||||
caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel();
|
||||
caster->m_currentSpells[CURRENT_CHANNELED_SPELL]=NULL;
|
||||
}
|
||||
caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->cancel();
|
||||
}
|
||||
|
||||
if(caster->GetTypeId()==TYPEID_UNIT && ((Creature*)caster)->isTotem() && ((Totem*)caster)->GetTotemType()==TOTEM_STATUE)
|
||||
|
||||
Reference in New Issue
Block a user