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:
Mihapro
2018-01-03 16:39:32 +01:00
committed by joschiwald
parent c2aead1da5
commit 8199eef81c
37 changed files with 108 additions and 126 deletions
+1 -1
View File
@@ -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);
}
}
}