mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
Merge commit 'origin/master' into 320
Conflicts: src/game/MovementHandler.cpp src/game/Player.cpp
This commit is contained in:
commit
f07363e9e0
218 changed files with 708 additions and 860 deletions
|
|
@ -2409,11 +2409,6 @@ void Spell::EffectApplyAura(uint32 i)
|
|||
if (!added)
|
||||
return;
|
||||
|
||||
// found crash at character loading, broken pointer to Aur...
|
||||
// Aur was deleted in AddAura()...
|
||||
if(!Aur)
|
||||
return;
|
||||
|
||||
// Prayer of Mending (jump animation), we need formal caster instead original for correct animation
|
||||
if( m_spellInfo->SpellFamilyName == SPELLFAMILY_PRIEST && (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000002000000000)))
|
||||
m_caster->CastSpell(unitTarget, 41637, true, NULL, Aur, m_originalCasterGUID);
|
||||
|
|
@ -5266,6 +5261,26 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
|||
m_caster->CastCustomSpell(target, spellId, &basePoint, 0, 0, false);
|
||||
return;
|
||||
}
|
||||
case 53412: // Invigoration (pet triggered script, master targeted)
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
Unit::AuraList const& auras = unitTarget->GetAurasByType(SPELL_AURA_DUMMY);
|
||||
for(Unit::AuraList::const_iterator i = auras.begin();i != auras.end(); ++i)
|
||||
{
|
||||
// Invigoration (master talent)
|
||||
if ((*i)->GetModifier()->m_miscvalue == 8 && (*i)->GetSpellProto()->SpellIconID == 3487)
|
||||
{
|
||||
if (roll_chance_i((*i)->GetModifier()->m_amount))
|
||||
{
|
||||
unitTarget->CastSpell(unitTarget, 53398, true, NULL, (*i), m_caster->GetGUID());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue