Initial changes.
This commit is contained in:
@@ -417,11 +417,19 @@ public class AdminEditChar implements IAdminCommandHandler
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Ertheia sex check.
|
||||
if (player.getRace() == Race.ERTHEIA)
|
||||
{
|
||||
player.getAppearance().setFemale();
|
||||
}
|
||||
|
||||
// Death Knight sex check.
|
||||
if (player.isDeathKnight())
|
||||
{
|
||||
player.getAppearance().setMale();
|
||||
}
|
||||
|
||||
final String newclass = ClassListData.getInstance().getClass(player.getClassId()).getClassName();
|
||||
if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP))
|
||||
{
|
||||
|
@@ -50,8 +50,17 @@ public class ChangeHairColor extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
// Death Knights only have 3 hair styles.
|
||||
final PlayerInstance player = effected.getActingPlayer();
|
||||
player.getAppearance().setHairColor(_value);
|
||||
if (player.isDeathKnight() && (item.getId() == 5241))
|
||||
{
|
||||
player.getAppearance().setHairColor(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.getAppearance().setHairColor(_value);
|
||||
}
|
||||
|
||||
player.broadcastUserInfo();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user