mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Fixed Lumbridge teleport achievement being granted for Miasmic Burst
This commit is contained in:
parent
e66be1b9d1
commit
4853262c25
1 changed files with 7 additions and 8 deletions
|
|
@ -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,14 +402,12 @@ class LumbridgeAchivementDiary : DiaryEventHookBase(DiaryType.LUMBRIDGE) {
|
|||
}
|
||||
|
||||
override fun onSpellCast(player: Player, event: SpellCastEvent) {
|
||||
when (event.spellId) {
|
||||
Modern.LUMBRIDGE_TELEPORT -> {
|
||||
finishTask(
|
||||
player,
|
||||
DiaryLevel.MEDIUM,
|
||||
MediumTasks.CAST_LUMBRIDGE_TELEPORT
|
||||
)
|
||||
}
|
||||
if (event.spellBook == SpellBookManager.SpellBook.MODERN && event.spellId == Modern.LUMBRIDGE_TELEPORT) {
|
||||
finishTask(
|
||||
player,
|
||||
DiaryLevel.MEDIUM,
|
||||
MediumTasks.CAST_LUMBRIDGE_TELEPORT
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue