Some refactoring of code. and some cleanups

This commit is contained in:
hondacrx
2019-09-21 12:11:16 -04:00
parent 7c405230cc
commit 35c06c09fd
214 changed files with 1235 additions and 1341 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ namespace Game.Chat
if (!player.HasAuraType(AuraType.ModShapeshift))
player.SetShapeshiftForm(ShapeShiftForm.None);
player.setFactionForRace(player.GetRace());
player.SetFactionForRace(player.GetRace());
player.SetPowerType(powerType);
// reset only if player not in some form;
@@ -98,7 +98,7 @@ namespace Game.Chat
if (!HandleResetStatsOrLevelHelper(target))
return false;
byte oldLevel = (byte)target.getLevel();
byte oldLevel = (byte)target.GetLevel();
// set starting level
uint startLevel = (uint)(target.GetClass() != Class.Deathknight ? WorldConfig.GetIntValue(WorldCfg.StartPlayerLevel) : WorldConfig.GetIntValue(WorldCfg.StartDeathKnightPlayerLevel));