From 51b46c53b84295658eb1197657e350c7a7a34271 Mon Sep 17 00:00:00 2001 From: krz Date: Fri, 8 May 2009 17:16:14 +0200 Subject: [PATCH 1/4] Fix enchantment application in case item is broken. --HG-- branch : trunk --- src/game/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 387ea27996..743d457d68 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6581,8 +6581,8 @@ void Player::_ApplyItemMods(Item *item, uint8 slot,bool apply) if(slot >= INVENTORY_SLOT_BAG_END || !item) return; - // not apply/remove mods for broken item - if(item->IsBroken()) + // not apply mods for broken item + if(item->IsBroken() && apply) return; ItemPrototype const *proto = item->GetProto(); From ca370ddbbecace13e8836366fbb743000592d232 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Fri, 8 May 2009 23:13:15 +0200 Subject: [PATCH 2/4] *Correct elapsed time in BG/Arena by Trojan. Thank you. --HG-- branch : trunk --- src/game/BattleGround.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index c0ec88b78f..6c8185b97d 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -126,7 +126,9 @@ void BattleGround::Update(time_t diff) //BG is empty return; - WorldPacket data; + m_StartTime += diff; + + // WorldPacket data; if(GetRemovedPlayersSize()) { From 025a24f96ef04b4c76e54f0feb2f513dd7abe7de Mon Sep 17 00:00:00 2001 From: raczman Date: Sat, 9 May 2009 22:33:18 +0200 Subject: [PATCH 3/4] Correct percent of threat redirected for Misdirection aura. By tvaroh This patch is only 2.4.3 valid, please do not pull it to TC2. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index efdcf30a1f..9ee2050a6a 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6280,6 +6280,6 @@ void Spell::EffectQuestFail(uint32 i) void Spell::EffectRedirectThreat(uint32 /*i*/) { if(unitTarget) - m_caster->SetReducedThreatPercent((uint32)damage, unitTarget->GetGUID()); + m_caster->SetReducedThreatPercent(100, unitTarget->GetGUID()); } From 2797d699363396c215cf5ecd603f7fae56cbc39d Mon Sep 17 00:00:00 2001 From: raczman Date: Sat, 9 May 2009 23:10:30 +0200 Subject: [PATCH 4/4] Correct vile poison affect mask. This fixes wound poison resistance chance when having vile poisons talents. by krz. --HG-- branch : trunk --- sql/updates/1484_world.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sql/updates/1484_world.sql diff --git a/sql/updates/1484_world.sql b/sql/updates/1484_world.sql new file mode 100644 index 0000000000..54f08141da --- /dev/null +++ b/sql/updates/1484_world.sql @@ -0,0 +1,7 @@ +DELETE FROM `spell_affect` WHERE `entry` IN ('16513','16514','16515','16719','16720') AND `effectId`='2'; +INSERT INTO `spell_affect` VALUES +('16513', '2', '268558336'), +('16514', '2', '268558336'), +('16515', '2', '268558336'), +('16719', '2', '268558336'), +('16720', '2', '268558336');