Hunter spell coefficients (#523)
* Hunter spell coefficients * Hunter spell coefficients
This commit is contained in:
committed by
StadenElysium
parent
4d1ab27ee4
commit
73dbd6531d
@@ -0,0 +1,15 @@
|
||||
INSERT INTO `migrations` VALUES ('20170426210154');
|
||||
|
||||
-- Regrowth DoT: ((15/15)(15/15) / (2/3.5 + 15/15)) / 7
|
||||
UPDATE spell_bonus_data SET dot_bonus=0.09091 WHERE entry=8936;
|
||||
|
||||
-- Tranquility: (3.5/3.5/3) / 5
|
||||
UPDATE spell_bonus_data SET dot_bonus=0.06666 WHERE entry=740;
|
||||
|
||||
-- Volley: 1/3/6
|
||||
INSERT INTO spell_bonus_data (entry, dot_bonus, comments)
|
||||
VALUES (1510, 0.05555, 'Hunter - Volley');
|
||||
|
||||
-- Mend Pet: (3.5/3.5) / 5
|
||||
INSERT INTO spell_bonus_data (entry, dot_bonus, comments)
|
||||
VALUES (136, 0.2, 'Hunter - Mend Pet');
|
||||
@@ -6798,7 +6798,8 @@ uint32 Unit::MeleeDamageBonusDone(Unit* pVictim, uint32 pdamage, WeaponAttackTyp
|
||||
for (AuraList::const_iterator i = mModDamageDone.begin(); i != mModDamageDone.end(); ++i)
|
||||
{
|
||||
if ((*i)->GetModifier()->m_miscvalue & schoolMask && // schoolmask has to fit with the intrinsic spell school
|
||||
(*i)->GetModifier()->m_miscvalue & GetMeleeDamageSchoolMask() && // AND schoolmask has to fit with weapon damage school (essential for non-physical spells)
|
||||
((*i)->GetModifier()->m_miscvalue & GetMeleeDamageSchoolMask() || // AND schoolmask has to fit with weapon damage school (essential for non-physical spells)
|
||||
spellProto->DmgClass == SPELL_DAMAGE_CLASS_RANGED) && // Some ranged physical attacks use magic damage, ex. Arcane Shot
|
||||
(((*i)->GetSpellProto()->EquippedItemClass == -1) || // general, weapon independent
|
||||
(pWeapon && pWeapon->IsFitToSpellRequirements((*i)->GetSpellProto())))) // OR used weapon fits aura requirements
|
||||
DoneFlat += (*i)->GetModifier()->m_amount;
|
||||
|
||||
Reference in New Issue
Block a user