DB update to have correct Windfury proc chance for already commited hack :)

--HG--
branch : trunk
This commit is contained in:
Astellar
2010-01-05 21:08:44 +03:00
parent 4c2ccf6ccc
commit 082e7bac47
3 changed files with 3 additions and 3 deletions
@@ -0,0 +1 @@
UPDATE spell_proc_event SET customChance = 100 WHERE entry = 33757;
+1 -1
View File
@@ -6045,7 +6045,7 @@ INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFam
( 33719, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000800, 0, 0, 0), -- Perfect Spell Reflection
( 33736, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 3), -- Water Shield (Rank 8)
( 33746, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 10), -- Essence Infused Mushroom
( 33757, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 3), -- Windfury Weapon (Passive) (Rank 1)
( 33757, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 100, 3), -- Windfury Weapon (Passive) (Rank 1)
( 33759, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 10), -- Power Infused Mushroom
( 33881, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0, 0, 0), -- Natural Perfection (Rank 1)
( 33882, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0, 0, 0), -- Natural Perfection (Rank 2)
+1 -2
View File
@@ -6705,8 +6705,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
return false;
// Now compute real proc chance...
Aura* aur = GetAura(55445, 0);
uint32 chance = 20/* + (aur ? aur->GetAmount()->m_amount : 0)*/;
uint32 chance = 20;
((Player*)this)->ApplySpellMod(dummySpell->Id,SPELLMOD_CHANCE_OF_SUCCESS,chance);
Item* addWeapon = ((Player*)this)->GetWeaponForAttack(attType == BASE_ATTACK ? OFF_ATTACK : BASE_ATTACK, true);