Fixed Lumbridge teleport achievement being granted for Miasmic Burst
This commit is contained in:
+2
-3
@@ -20,6 +20,7 @@ import core.game.diary.DiaryEventHookBase
|
||||
import core.game.diary.DiaryLevel
|
||||
import core.game.event.*
|
||||
import content.data.Quests
|
||||
import core.game.node.entity.player.link.SpellBookManager
|
||||
|
||||
class LumbridgeAchivementDiary : DiaryEventHookBase(DiaryType.LUMBRIDGE) {
|
||||
|
||||
@@ -401,8 +402,7 @@ class LumbridgeAchivementDiary : DiaryEventHookBase(DiaryType.LUMBRIDGE) {
|
||||
}
|
||||
|
||||
override fun onSpellCast(player: Player, event: SpellCastEvent) {
|
||||
when (event.spellId) {
|
||||
Modern.LUMBRIDGE_TELEPORT -> {
|
||||
if (event.spellBook == SpellBookManager.SpellBook.MODERN && event.spellId == Modern.LUMBRIDGE_TELEPORT) {
|
||||
finishTask(
|
||||
player,
|
||||
DiaryLevel.MEDIUM,
|
||||
@@ -410,7 +410,6 @@ class LumbridgeAchivementDiary : DiaryEventHookBase(DiaryType.LUMBRIDGE) {
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onJobAssigned(player: Player, event: JobAssignmentEvent) {
|
||||
when (player.viewport.region.id) {
|
||||
|
||||
Reference in New Issue
Block a user