diff options
| author | Rat <none@none> | 2009-04-07 12:47:34 +0200 |
|---|---|---|
| committer | Rat <none@none> | 2009-04-07 12:47:34 +0200 |
| commit | d4f763f2f60149c647d3d31e983b6c97913681cb (patch) | |
| tree | 62dadc7ad212967a67d76bc7c38f592f3a8ef510 /src | |
| parent | 756e14518f540dc5c1f0b0f5bd039bb681468f46 (diff) | |
*fix Lady Vashj unattackable bug
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp index fed5926eecd..1a82ee38900 100644 --- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp +++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp @@ -134,7 +134,7 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI { pInstance = ((ScriptedInstance*)c->GetInstanceData()); Intro = false; - CanAttack = false;//must be after reset() + JustCreated = true; m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); //set it only once on creature create (no need do intro if wiped) } @@ -161,6 +161,7 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI bool InCombat; bool Intro; bool CanAttack; + bool JustCreated; void Reset() { @@ -181,7 +182,11 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI Entangle = false; InCombat = false; - CanAttack = true; + if(JustCreated) + { + CanAttack = false; + JustCreated = false; + }else CanAttack = true; Unit *remo; for(uint8 i = 0; i < 4; i++) |
