fix(Core/Scripts): Master of elements odd crash (#13849)
This commit is contained in:
parent
9bebd6a05e
commit
9c16f56ccb
1 changed files with 3 additions and 0 deletions
|
|
@ -833,6 +833,9 @@ class spell_mage_master_of_elements : public AuraScript
|
|||
{
|
||||
PreventDefaultAction();
|
||||
|
||||
if (!_spellInfo)
|
||||
return;
|
||||
|
||||
if (Unit* target = GetTarget())
|
||||
{
|
||||
int32 mana = int32(_spellInfo->CalcPowerCost(target, eventInfo.GetSchoolMask()) / _ticksModifier);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue