fix(Core/Scripts): Master of elements odd crash (#13849)
This commit is contained in:
@@ -833,6 +833,9 @@ class spell_mage_master_of_elements : public AuraScript
|
|||||||
{
|
{
|
||||||
PreventDefaultAction();
|
PreventDefaultAction();
|
||||||
|
|
||||||
|
if (!_spellInfo)
|
||||||
|
return;
|
||||||
|
|
||||||
if (Unit* target = GetTarget())
|
if (Unit* target = GetTarget())
|
||||||
{
|
{
|
||||||
int32 mana = int32(_spellInfo->CalcPowerCost(target, eventInfo.GetSchoolMask()) / _ticksModifier);
|
int32 mana = int32(_spellInfo->CalcPowerCost(target, eventInfo.GetSchoolMask()) / _ticksModifier);
|
||||||
|
|||||||
Reference in New Issue
Block a user