mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[11757] change target of end cast procs to always be the caster, also not allow skill update when proc is called from cast end part
This commit is contained in:
parent
0b26ca38a7
commit
4f397bf7aa
3 changed files with 4 additions and 4 deletions
|
|
@ -3221,11 +3221,11 @@ void Spell::cast(bool skipCheck)
|
|||
// critical hit related part is currently done on hit so proc there,
|
||||
// 0 damage since any damage based procs should be on hit
|
||||
// 0 victim proc since there is no victim proc dependent on successfull cast for caster
|
||||
m_caster->ProcDamageAndSpell(m_targets.getUnitTarget(), m_procAttacker, 0, PROC_EX_NORMAL_HIT, 0, m_attackType, m_spellInfo);
|
||||
m_caster->ProcDamageAndSpell(m_caster, m_procAttacker, 0, PROC_EX_NORMAL_HIT, 0, m_attackType, m_spellInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_caster->ProcDamageAndSpell(m_targets.getUnitTarget(), m_procAttacker, 0, PROC_EX_NORMAL_HIT, 0, m_attackType, m_spellInfo);
|
||||
m_caster->ProcDamageAndSpell(m_caster, m_procAttacker, 0, PROC_EX_NORMAL_HIT, 0, m_attackType, m_spellInfo);
|
||||
|
||||
// Immediate spell, no big deal
|
||||
handle_immediate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue