Core/Entities: Update updatefields to 8.0.1.27980

This commit is contained in:
Shauren
2018-10-10 22:11:41 +02:00
parent ee682544d0
commit 7512ffb058
42 changed files with 6686 additions and 5236 deletions
+4 -4
View File
@@ -83,8 +83,8 @@ public:
if (!handler->extractPlayerTarget((char*)args, &target))
return false;
target->SetUInt32Value(PLAYER_FIELD_KILLS, 0);
target->SetUInt32Value(PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, 0);
target->SetUInt32Value(ACTIVE_PLAYER_FIELD_KILLS, 0);
target->SetUInt32Value(ACTIVE_PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, 0);
target->UpdateCriteria(CRITERIA_TYPE_EARN_HONORABLE_KILL);
return true;
@@ -117,7 +117,7 @@ public:
player->SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
//-1 is default value
player->SetUInt32Value(PLAYER_FIELD_WATCHED_FACTION_INDEX, uint32(-1));
player->SetUInt32Value(ACTIVE_PLAYER_FIELD_WATCHED_FACTION_INDEX, uint32(-1));
return true;
}
@@ -143,7 +143,7 @@ public:
target->InitStatsForLevel(true);
target->InitTaxiNodesForLevel();
target->InitTalentForLevel();
target->SetUInt32Value(PLAYER_XP, 0);
target->SetUInt32Value(ACTIVE_PLAYER_FIELD_XP, 0);
target->_ApplyAllLevelScaleItemMods(true);