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