mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[8022] Update spell 53301 and ranks damage formula.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
9d8aa63d5c
commit
02a71edb86
2 changed files with 3 additions and 13 deletions
|
|
@ -4222,7 +4222,7 @@ void Aura::HandleAuraPeriodicDummy(bool apply, bool Real)
|
|||
{
|
||||
// Explosive Shot
|
||||
if (apply && !loading && caster)
|
||||
m_modifier.m_amount += int32(caster->GetTotalAttackPowerValue(RANGED_ATTACK) * 8 / 100);
|
||||
m_modifier.m_amount += int32(caster->GetTotalAttackPowerValue(RANGED_ATTACK) * 14 / 100);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -6504,17 +6504,7 @@ void Aura::PeriodicDummyTick()
|
|||
// Explosive Shot
|
||||
if (spell->SpellFamilyFlags & UI64LIT(0x8000000000000000))
|
||||
{
|
||||
if (!caster)
|
||||
return;
|
||||
int32 damage = m_modifier.m_amount;
|
||||
// Full damage to target at 0 tick
|
||||
if (m_duration > m_modifier.periodictime)
|
||||
{
|
||||
caster->CastCustomSpell(m_target, 53352, &damage, NULL, NULL, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
damage/=4;
|
||||
caster->CastCustomSpell(m_target, 56298, &damage, NULL, NULL, true, NULL, this);
|
||||
m_target->CastCustomSpell(m_target, 53352, &m_modifier.m_amount, 0, 0, true, 0, this, GetCasterGUID());
|
||||
return;
|
||||
}
|
||||
switch (spell->Id)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8021"
|
||||
#define REVISION_NR "8022"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue