*Merge.
--HG-- branch : trunk
This commit is contained in:
@@ -4,4 +4,6 @@ FILE(GLOB _SQL_UPDATES *.sql)
|
||||
|
||||
INSTALL(FILES
|
||||
${_SQL_UPDATES}
|
||||
1234_world.sql
|
||||
1236_world.sql
|
||||
DESTINATION share/trinity/sql/updates)
|
||||
|
||||
+4
-1
@@ -175,7 +175,10 @@ struct TRINITY_DLL_DECL boss_kelidan_the_breakerAI : public ScriptedAI
|
||||
Creature *channeler = (Creature*)Unit::GetUnit(*m_creature, Channelers[i]);
|
||||
if(!channeler || channeler->isDead())
|
||||
channeler = m_creature->SummonCreature(ENTRY_CHANNELER,ShadowmoonChannelers[i][0],ShadowmoonChannelers[i][1],ShadowmoonChannelers[i][2],ShadowmoonChannelers[i][3],TEMPSUMMON_CORPSE_TIMED_DESPAWN,300000);
|
||||
Channelers[i] = channeler->GetGUID();
|
||||
if(channeler)
|
||||
Channelers[i] = channeler->GetGUID();
|
||||
else
|
||||
Channelers[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -355,8 +355,8 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data )
|
||||
if(isTotem() || isTrigger()
|
||||
|| GetCreatureType() == CREATURE_TYPE_CRITTER)
|
||||
SetReactState(REACT_PASSIVE);
|
||||
else if(isCivilian())
|
||||
SetReactState(REACT_DEFENSIVE);
|
||||
/*else if(isCivilian())
|
||||
SetReactState(REACT_DEFENSIVE);*/
|
||||
else
|
||||
SetReactState(REACT_AGGRESSIVE);
|
||||
|
||||
|
||||
+5
-1
@@ -18690,7 +18690,7 @@ void Player::UpdateVisibilityOf(T* target, UpdateData& data, std::set<WorldObjec
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
else if(visibleNow.size() < 30)
|
||||
{
|
||||
if(target->isVisibleForInState(this,false))
|
||||
{
|
||||
@@ -20073,7 +20073,11 @@ void Player::StopCastingBindSight()
|
||||
if(WorldObject* target = GetViewpoint())
|
||||
{
|
||||
if(target->isType(TYPEMASK_UNIT))
|
||||
{
|
||||
((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_BIND_SIGHT, GetGUID());
|
||||
((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_MOD_POSSESS, GetGUID());
|
||||
((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_MOD_POSSESS_PET, GetGUID());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user