diff options
| author | Vincent-Michael <Vincent_Michael@gmx.de> | 2013-07-22 15:41:32 +0200 |
|---|---|---|
| committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2013-07-22 15:42:21 +0200 |
| commit | a6510924892b4b2bd5411746651cdccf64f9a5a8 (patch) | |
| tree | c352d5462bc28c54a1b5abc61b4155e1e5c74bb3 /src/server/scripts/World | |
| parent | a468563904bd9e78a359444991bc18d5271507ba (diff) | |
Core/Spells: Fix warlock "Healthstone" for 4.3.4
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/go_scripts.cpp | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp index 87533fbe47d..097e2a65e46 100644 --- a/src/server/scripts/World/go_scripts.cpp +++ b/src/server/scripts/World/go_scripts.cpp @@ -869,23 +869,6 @@ public: ## go_soulwell ######*/ -enum SoulWellData -{ - GO_SOUL_WELL_R1 = 181621, - GO_SOUL_WELL_R2 = 193169, - - SPELL_IMPROVED_HEALTH_STONE_R1 = 18692, - SPELL_IMPROVED_HEALTH_STONE_R2 = 18693, - - SPELL_CREATE_MASTER_HEALTH_STONE_R0 = 34130, - SPELL_CREATE_MASTER_HEALTH_STONE_R1 = 34149, - SPELL_CREATE_MASTER_HEALTH_STONE_R2 = 34150, - - SPELL_CREATE_FEL_HEALTH_STONE_R0 = 58890, - SPELL_CREATE_FEL_HEALTH_STONE_R1 = 58896, - SPELL_CREATE_FEL_HEALTH_STONE_R2 = 58898, -}; - class go_soulwell : public GameObjectScript { public: @@ -895,39 +878,6 @@ class go_soulwell : public GameObjectScript { go_soulwellAI(GameObject* go) : GameObjectAI(go) { - _stoneSpell = 0; - _stoneId = 0; - switch (go->GetEntry()) - { - case GO_SOUL_WELL_R1: - _stoneSpell = SPELL_CREATE_MASTER_HEALTH_STONE_R0; - if (Unit* owner = go->GetOwner()) - { - if (owner->HasAura(SPELL_IMPROVED_HEALTH_STONE_R1)) - _stoneSpell = SPELL_CREATE_MASTER_HEALTH_STONE_R1; - else if (owner->HasAura(SPELL_CREATE_MASTER_HEALTH_STONE_R2)) - _stoneSpell = SPELL_CREATE_MASTER_HEALTH_STONE_R2; - } - break; - case GO_SOUL_WELL_R2: - _stoneSpell = SPELL_CREATE_FEL_HEALTH_STONE_R0; - if (Unit* owner = go->GetOwner()) - { - if (owner->HasAura(SPELL_IMPROVED_HEALTH_STONE_R1)) - _stoneSpell = SPELL_CREATE_FEL_HEALTH_STONE_R1; - else if (owner->HasAura(SPELL_CREATE_MASTER_HEALTH_STONE_R2)) - _stoneSpell = SPELL_CREATE_FEL_HEALTH_STONE_R2; - } - break; - } - if (_stoneSpell == 0) // Should never happen - return; - - SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(_stoneSpell); - if (!spellInfo) - return; - - _stoneId = spellInfo->Effects[EFFECT_0].ItemType; } /// Due to the fact that this GameObject triggers CMSG_GAMEOBJECT_USE @@ -937,31 +887,10 @@ class go_soulwell : public GameObjectScript bool GossipHello(Player* player) OVERRIDE { Unit* owner = go->GetOwner(); - if (_stoneSpell == 0 || _stoneId == 0) - return true; - if (!owner || owner->GetTypeId() != TYPEID_PLAYER || !player->IsInSameRaidWith(owner->ToPlayer())) return true; - - // Don't try to add a stone if we already have one. - if (player->HasItemCount(_stoneId)) - { - if (SpellInfo const* spell = sSpellMgr->GetSpellInfo(_stoneSpell)) - Spell::SendCastResult(player, spell, 0, SPELL_FAILED_TOO_MANY_OF_ITEM); - return true; - } - - owner->CastSpell(player, _stoneSpell, true); - // Item has to actually be created to remove a charge on the well. - if (player->HasItemCount(_stoneId)) - go->AddUse(); - return false; } - - private: - uint32 _stoneSpell; - uint32 _stoneId; }; GameObjectAI* GetAI(GameObject* go) const OVERRIDE |
