Beauty shop should work for Death Knight dualclass.

This commit is contained in:
MobiusDevelopment
2021-12-30 22:07:05 +00:00
parent d19d9c74ea
commit a20b209802
3 changed files with 29 additions and 1 deletions

View File

@@ -16,6 +16,8 @@
*/
package ai.others.LaVieEnRose;
import org.l2jmobius.gameserver.data.xml.CategoryData;
import org.l2jmobius.gameserver.enums.CategoryType;
import org.l2jmobius.gameserver.enums.ChatType;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.Player;
@@ -133,7 +135,7 @@ public class LaVieEnRose extends AbstractNpcAI
return false;
}
if (player.isDeathKnight())
if (CategoryData.getInstance().isInCategory(CategoryType.DEATH_KNIGHT_ALL_CLASS, player.getClassId().getId()))
{
player.sendPacket(SystemMessageId.DEATH_KNIGHT_CLASSES_ARE_UNAVAILABLE);
return false;