Core/Misc: Added helper function Unit::SetFullPower
* Also renamed Unit::getPowerType and Unit::setPowerType to follow style guidelines Ref #20981
This commit is contained in:
@@ -838,7 +838,7 @@ class spell_symbol_of_life_dummy : public SpellScriptLoader
|
||||
target->SetUInt32Value(OBJECT_DYNAMIC_FLAGS, 0);
|
||||
target->SetUInt32Value(UNIT_FIELD_FLAGS_2, 0);
|
||||
target->SetHealth(target->GetMaxHealth() / 2);
|
||||
target->SetPower(POWER_MANA, uint32(target->GetMaxPower(POWER_MANA) * 0.75f));
|
||||
target->SetPower(POWER_MANA, target->GetMaxPower(POWER_MANA) * 0.75f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user