diff --git a/sql/migrations/20170426210154_world.sql b/sql/migrations/20170426210154_world.sql new file mode 100644 index 000000000..ee34c6c79 --- /dev/null +++ b/sql/migrations/20170426210154_world.sql @@ -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'); diff --git a/src/game/Objects/Unit.cpp b/src/game/Objects/Unit.cpp index 172655607..243b300a0 100644 --- a/src/game/Objects/Unit.cpp +++ b/src/game/Objects/Unit.cpp @@ -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;