From aae9b76b246b8756f7cf16c558af270d809ac6dc Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sat, 6 Jun 2009 19:57:09 +0400 Subject: [PATCH] [7970] Update test for spell 16972 and ranks (now if have 2 dummy effect but need effect 0 in check place) --- src/game/StatSystem.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index 8ca0ee1a8..b22ccd03f 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -302,8 +302,8 @@ void Player::UpdateAttackPowerAndDamage(bool ranged ) Unit::AuraList const& mDummy = GetAurasByType(SPELL_AURA_DUMMY); for(Unit::AuraList::const_iterator itr = mDummy.begin(); itr != mDummy.end(); ++itr) { - // Predatory Strikes - if ((*itr)->GetSpellProto()->SpellIconID == 1563) + // Predatory Strikes (effect 0) + if ((*itr)->GetEffIndex()==0 && (*itr)->GetSpellProto()->SpellIconID == 1563) { mLevelMult = (*itr)->GetModifier()->m_amount / 100.0f; break; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 04203eeaf..fd9a94e11 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7969" + #define REVISION_NR "7970" #endif // __REVISION_NR_H__ -- 2.11.4.GIT