mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 04:37:01 +00:00
[8173] Fixes for 1822 and ranks base at spell_check detection
* Update AP bonus per tick to 0.18 as expected in 3.0.2 and later. * Better spell selction to avoid unrelated spells for AP bonuses
This commit is contained in:
parent
2ed6642539
commit
2dee7750e4
4 changed files with 11 additions and 8 deletions
|
|
@ -4306,10 +4306,10 @@ void Aura::HandlePeriodicDamage(bool apply, bool Real)
|
|||
case SPELLFAMILY_DRUID:
|
||||
{
|
||||
// Rake
|
||||
if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000001000))
|
||||
if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000001000) && m_spellProto->Effect[2]==SPELL_EFFECT_ADD_COMBO_POINTS)
|
||||
{
|
||||
// $AP*0.06 bonus per tick
|
||||
m_modifier.m_amount += int32(caster->GetTotalAttackPowerValue(BASE_ATTACK) * 6 / 100);
|
||||
// $AP*0.18 bonus per tick
|
||||
m_modifier.m_amount += int32(caster->GetTotalAttackPowerValue(BASE_ATTACK) * 18 / 100);
|
||||
return;
|
||||
}
|
||||
// Lacerate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue