Core/Spell: Fix crash for Glyph of Divinity
This commit is contained in:
@@ -7991,10 +7991,10 @@ bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, Sp
|
||||
{
|
||||
*handled = true;
|
||||
// Check if we are the target and prevent mana gain
|
||||
if (triggeredByAura->GetCasterGUID() == victim->GetGUID())
|
||||
if (victim && triggeredByAura->GetCasterGUID() == victim->GetGUID())
|
||||
return false;
|
||||
// Lookup base amount mana restore
|
||||
for (uint8 i = 0; i<MAX_SPELL_EFFECTS; i++)
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; i++)
|
||||
{
|
||||
if (procSpell->Effects[i].Effect == SPELL_EFFECT_ENERGIZE)
|
||||
{
|
||||
@@ -17018,7 +17018,7 @@ void Unit::ExitVehicle(Position const* /*exitPosition*/)
|
||||
//! to specify exit coordinates and either store those per passenger, or we need to
|
||||
//! init spline movement based on those coordinates in unapply handlers, and
|
||||
//! relocate exiting passengers based on Unit::moveSpline data. Either way,
|
||||
//! Coming Soon™
|
||||
//! Coming Soon�
|
||||
}
|
||||
|
||||
void Unit::_ExitVehicle(Position const* exitPosition)
|
||||
|
||||
Reference in New Issue
Block a user