diff options
author | megamage <none@none> | 2009-03-22 11:37:59 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-22 11:37:59 -0600 |
commit | 708449298efbf50783c6cf09fbea22196c7bd315 (patch) | |
tree | efa8d7b730a697710101f2d10708df2686ae7eb5 /src | |
parent | ae7a8a09718115b291d18929c098c5082ee0fda8 (diff) | |
parent | 763c81de3cb3e144276f850ffa12265bf92d0d03 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp | 5 | ||||
-rw-r--r-- | src/game/Creature.cpp | 4 | ||||
-rw-r--r-- | src/game/Player.cpp | 6 |
3 files changed, 11 insertions, 4 deletions
diff --git a/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp b/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp index 2f8e2738fee..31485690e46 100644 --- a/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp +++ b/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp @@ -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; } } diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index db502d2cc25..edf32d19cf2 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -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); diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 050ae12b818..28080c58b6d 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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()); + } } } |