mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 04:37:01 +00:00
Merge commit 'origin/master' into 310
Conflicts: src/game/UpdateData.cpp
This commit is contained in:
commit
1f87157edf
20 changed files with 195 additions and 139 deletions
|
|
@ -2023,7 +2023,7 @@ void Aura::TriggerSpellWithValue()
|
|||
uint32 trigger_spell_id = GetSpellProto()->EffectTriggerSpell[m_effIndex];
|
||||
int32 basepoints0 = this->GetModifier()->m_amount;
|
||||
|
||||
caster->CastCustomSpell(target, trigger_spell_id, &basepoints0, 0, 0, true, 0, this);
|
||||
caster->CastCustomSpell(target, trigger_spell_id, &basepoints0, NULL, NULL, true, NULL, this);
|
||||
}
|
||||
|
||||
/*********************************************************/
|
||||
|
|
@ -6416,7 +6416,7 @@ void Aura::PeriodicDummyTick()
|
|||
// Increases your attack power by $s1 for every $s2 armor value you have.
|
||||
// Calculate AP bonus (from 1 efect of this spell)
|
||||
int32 apBonus = m_modifier.m_amount * m_target->GetArmor() / m_target->CalculateSpellDamage(spell, 1, spell->EffectBasePoints[1], m_target);
|
||||
m_target->CastCustomSpell(m_target, 61217, &apBonus, &apBonus, 0, true, 0, this);
|
||||
m_target->CastCustomSpell(m_target, 61217, &apBonus, &apBonus, NULL, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
|
@ -6439,7 +6439,7 @@ void Aura::PeriodicDummyTick()
|
|||
int32 mod = (rage < 100) ? rage : 100;
|
||||
int32 points = m_target->CalculateSpellDamage(spell, 1, spell->EffectBasePoints[1], m_target);
|
||||
int32 regen = m_target->GetMaxHealth() * (mod * points / 10) / 1000;
|
||||
m_target->CastCustomSpell(m_target, 22845, ®en, 0, 0, true, 0, this);
|
||||
m_target->CastCustomSpell(m_target, 22845, ®en, NULL, NULL, true, NULL, this);
|
||||
m_target->SetPower(POWER_RAGE, rage-mod);
|
||||
return;
|
||||
}
|
||||
|
|
@ -6511,11 +6511,11 @@ void Aura::PeriodicDummyTick()
|
|||
// Full damage to target at 0 tick
|
||||
if (m_duration > m_modifier.periodictime)
|
||||
{
|
||||
caster->CastCustomSpell(m_target, 53352, &damage, 0, 0, true, 0, this);
|
||||
caster->CastCustomSpell(m_target, 53352, &damage, NULL, NULL, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
damage/=4;
|
||||
caster->CastCustomSpell(m_target, 56298, &damage, 0, 0, true, 0, this);
|
||||
caster->CastCustomSpell(m_target, 56298, &damage, NULL, NULL, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
switch (spell->Id)
|
||||
|
|
@ -6556,7 +6556,7 @@ void Aura::PeriodicDummyTick()
|
|||
if (spell->SpellFamilyFlags & UI64LIT(0x0000000000000020))
|
||||
{
|
||||
if (caster)
|
||||
caster->CastCustomSpell(m_target, 52212, &m_modifier.m_amount, NULL, NULL, true, 0, this);
|
||||
caster->CastCustomSpell(m_target, 52212, &m_modifier.m_amount, NULL, NULL, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
// Raise Dead
|
||||
|
|
@ -6589,7 +6589,7 @@ void Aura::PeriodicDummyTick()
|
|||
// Increases your attack power by $s1 for every $s2 armor value you have.
|
||||
// Calculate AP bonus (from 1 efect of this spell)
|
||||
int32 apBonus = m_modifier.m_amount * m_target->GetArmor() / m_target->CalculateSpellDamage(spell, 1, spell->EffectBasePoints[1], m_target);
|
||||
m_target->CastCustomSpell(m_target, 61217, &apBonus, &apBonus, 0, true, 0, this);
|
||||
m_target->CastCustomSpell(m_target, 61217, &apBonus, &apBonus, NULL, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
// Reaping
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue