Quest use of isDeathKnight method.

This commit is contained in:
MobiusDevelopment 2021-02-14 14:28:11 +00:00
parent d37bc1a0fe
commit 176213ac03
5 changed files with 10 additions and 10 deletions

View File

@ -230,7 +230,7 @@ public class Q00255_Tutorial extends Quest
public String onFirstTalk(Npc npc, PlayerInstance player)
{
// Death Knights.
if (player.getClassId().getId() > 195)
if (player.isDeathKnight())
{
return null;
}
@ -415,7 +415,7 @@ public class Q00255_Tutorial extends Quest
}
// Death Knights.
if (player.getClassId().getId() > 195)
if (player.isDeathKnight())
{
return;
}

View File

@ -128,7 +128,7 @@ public class Q10957_TheLifeOfADeathKnight extends Quest
String htmltext = getNoQuestMsg(player);
// Death Knights.
if (player.getClassId().getId() < 196)
if (!player.isDeathKnight())
{
return htmltext;
}
@ -209,7 +209,7 @@ public class Q10957_TheLifeOfADeathKnight extends Quest
}
// Death Knights.
if (player.getClassId().getId() < 196)
if (!player.isDeathKnight())
{
return;
}

View File

@ -215,7 +215,7 @@ public class Q10959_ChallengingYourDestiny extends Quest
}
// Death Knights.
if (player.getClassId().getId() < 196)
if (!player.isDeathKnight())
{
return;
}

View File

@ -228,7 +228,7 @@ public class Q10962_NewHorizons extends Quest
}
// Death Knights.
if (player.getClassId().getId() > 195)
if (player.isDeathKnight())
{
return;
}

View File

@ -183,7 +183,7 @@ public class Q10966_ATripBegins extends Quest
case CAPTAIN_BATHIS:
{
// Death Knights.
if (player.getClassId().getId() > 195)
if (player.isDeathKnight())
{
return htmltext;
}
@ -194,7 +194,7 @@ public class Q10966_ATripBegins extends Quest
case MATHORN:
{
// Death Knights.
if (player.getClassId().getId() < 196)
if (!player.isDeathKnight())
{
return htmltext;
}
@ -213,7 +213,7 @@ public class Q10966_ATripBegins extends Quest
if (qs.isCond(1))
{
// Death Knights.
if (player.getClassId().getId() > 195)
if (player.isDeathKnight())
{
return htmltext;
}
@ -229,7 +229,7 @@ public class Q10966_ATripBegins extends Quest
case MATHORN:
{
// Death Knights.
if (player.getClassId().getId() < 196)
if (!player.isDeathKnight())
{
return htmltext;
}