mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
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();
|
||||
|
||||
if (!_spellInfo)
|
||||
return;
|
||||
|
||||
if (Unit* target = GetTarget())
|
||||
{
|
||||
int32 mana = int32(_spellInfo->CalcPowerCost(target, eventInfo.GetSchoolMask()) / _ticksModifier);
|
||||
|
||||
Reference in New Issue
Block a user