Core/Units: Don't set new power type if old power type is the same

This commit is contained in:
ZackTsuna committed 2014-04-20 21:22:21 +02:00
1 parent c26dec8dbb
commit 518190ee88
1 file changed
+3
+3
View File
@@ -8635,6 +8635,9 @@ bool Unit::HandleOverrideClassScriptAuraProc(Unit* victim, uint32 /*damage*/, Au
void Unit::setPowerType(Powers new_powertype)
{
if (getPowerType() == new_powertype)
return;
SetByteValue(UNIT_FIELD_BYTES_0, 3, new_powertype);
if (GetTypeId() == TYPEID_PLAYER)