Admin set class for death knight needed adjustments.
This commit is contained in:
parent
36b63b34b3
commit
e136093d2c
@ -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))
|
||||
|
@ -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;
|
||||
|
@ -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))
|
||||
|
@ -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;
|
||||
|
@ -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))
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user