aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-06-28 10:34:22 +0200
committerQAston <none@none>2009-06-28 10:34:22 +0200
commitfa4838de217fd0b382b77c774e57c632829be69b (patch)
tree415a49548a963a2cc34ba3bd8a31b8f264e902cf /src
parent3e895d2b66c76c6658d80057352809f9e0d0be0b (diff)
*Fix for Windfury Weapon: prevent triggering other weapon enchant by checking item guids.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 93107ecf55f..ae285069f74 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6447,6 +6447,9 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
if( cooldown && ((Player*)this)->HasSpellCooldown(dummySpell->Id))
return false;
+ if(triggeredByAura->GetParentAura() && castItem->GetGUID() != triggeredByAura->GetParentAura()->GetCastItemGUID())
+ return false;
+
// Now amount of extra power stored in 1 effect of Enchant spell
// Get it by item enchant id
uint32 spellId;