*Update damage calculation of explosive shot - by rastikzzz

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-02-28 19:00:28 +01:00
parent 142d8e7659
commit b375c0d89a
+2 -9
View File
@@ -3918,7 +3918,7 @@ void Aura::HandleAuraPeriodicDummy(bool apply, bool Real)
{ {
// Explosive Shot // Explosive Shot
if (apply && !loading && caster) if (apply && !loading && caster)
m_modifier.m_amount +=caster->GetTotalAttackPowerValue(RANGED_ATTACK) * 8 / 100; m_modifier.m_amount +=caster->GetTotalAttackPowerValue(RANGED_ATTACK) * 16 / 100;
break; break;
} }
} }
@@ -6214,14 +6214,7 @@ void Aura::PeriodicDummyTick()
if (!caster) if (!caster)
return; return;
int32 damage = m_modifier.m_amount; int32 damage = m_modifier.m_amount;
// Full damage to target at 0 tick caster->CastCustomSpell(m_target, 53352, &damage, 0, 0, true, 0, this);
if (m_duration > m_modifier.periodictime)
{
caster->CastCustomSpell(m_target, 53352, &damage, 0, 0, true, 0, this);
return;
}
damage/=4;
caster->CastCustomSpell(m_target, 56298, &damage, 0, 0, true, 0, this);
return; return;
} }
switch (spell->Id) switch (spell->Id)