*Fix for Windfury Weapon: prevent triggering other weapon enchant by checking item guids.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-28 10:34:22 +02:00
parent 3e895d2b66
commit fa4838de21

View File

@@ -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;