[8022] Update spell 53301 and ranks damage formula.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
XTZGZoReX 2009-06-15 22:23:06 +04:00 committed by VladimirMangos
parent 9d8aa63d5c
commit 02a71edb86
2 changed files with 3 additions and 13 deletions

View file

@ -4222,7 +4222,7 @@ void Aura::HandleAuraPeriodicDummy(bool apply, bool Real)
{ {
// Explosive Shot // Explosive Shot
if (apply && !loading && caster) 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; break;
} }
} }
@ -6504,17 +6504,7 @@ void Aura::PeriodicDummyTick()
// Explosive Shot // Explosive Shot
if (spell->SpellFamilyFlags & UI64LIT(0x8000000000000000)) if (spell->SpellFamilyFlags & UI64LIT(0x8000000000000000))
{ {
if (!caster) m_target->CastCustomSpell(m_target, 53352, &m_modifier.m_amount, 0, 0, true, 0, this, GetCasterGUID());
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);
return; return;
} }
switch (spell->Id) switch (spell->Id)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8021" #define REVISION_NR "8022"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__