Admin set class for death knight needed adjustments.

This commit is contained in:
MobiusDevelopment 2021-11-07 23:03:07 +00:00
parent 36b63b34b3
commit e136093d2c
6 changed files with 35 additions and 3 deletions

View File

@ -425,10 +425,15 @@ public class AdminEditChar implements IAdminCommandHandler
}
// Death Knight sex check.
if (player.isDeathKnight())
if ((classidval >= 212) && (classidval <= 216))
{
player.setDeathKnight(true);
player.getAppearance().setMale();
}
else
{
player.setDeathKnight(false);
}
final String newclass = ClassListData.getInstance().getClass(player.getClassId()).getClassName();
if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP))

View File

@ -8707,6 +8707,11 @@ public class PlayerInstance extends Playable
return _isDeathKnight;
}
public void setDeathKnight(boolean value)
{
_isDeathKnight = value;
}
public boolean isMounted()
{
return _mountType != MountType.NONE;

View File

@ -409,11 +409,17 @@ public class AdminEditChar implements IAdminCommandHandler
}
}
}
// Death Knight checks.
if (player.isDeathKnight())
if ((classidval >= 196) && (classidval <= 207))
{
player.setDeathKnight(true);
player.getAppearance().setMale();
}
else
{
player.setDeathKnight(false);
}
final String newclass = ClassListData.getInstance().getClass(player.getClassId()).getClassName();
// if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP))

View File

@ -8620,6 +8620,11 @@ public class PlayerInstance extends Playable
return _isDeathKnight;
}
public void setDeathKnight(boolean value)
{
_isDeathKnight = value;
}
public boolean isMounted()
{
return _mountType != MountType.NONE;

View File

@ -409,11 +409,17 @@ public class AdminEditChar implements IAdminCommandHandler
}
}
}
// Death Knight checks.
if (player.isDeathKnight())
if ((classidval >= 196) && (classidval <= 207))
{
player.setDeathKnight(true);
player.getAppearance().setMale();
}
else
{
player.setDeathKnight(false);
}
final String newclass = ClassListData.getInstance().getClass(player.getClassId()).getClassName();
// if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP))

View File

@ -8620,6 +8620,11 @@ public class PlayerInstance extends Playable
return _isDeathKnight;
}
public void setDeathKnight(boolean value)
{
_isDeathKnight = value;
}
public boolean isMounted()
{
return _mountType != MountType.NONE;