Merge pull request #11913 from NorthStrider/master

Core/Units: Don't set new power type if old power type is the same
This commit is contained in:
Warpten committed 2014-04-20 21:54:45 +02:00
commit e25416ee23
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)