mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 19:35:10 -06:00
small fixes
This commit is contained in:
parent
8a7aa2a1b9
commit
bd2887919b
2 changed files with 3 additions and 4 deletions
|
|
@ -40,8 +40,7 @@ class EvilChickenNPC(override var loot: WeightBasedTable? = null) : RandomEventN
|
|||
sendMessage(player, "The Evil Chicken realises you're out of range and vanishes.")
|
||||
sentMessage = true
|
||||
terminate()
|
||||
}
|
||||
if (getWorldTicks() % 10 == 0) {
|
||||
} else if (getWorldTicks() % 10 == 0) {
|
||||
sendChat(phrases.random().replace("@name", player.username.capitalize()))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class MortMyreGhastNPC : AbstractNPC {
|
|||
super.handleTickActions()
|
||||
if(id == ids[0] && RandomFunction.roll(35)){
|
||||
val players = RegionManager.getLocalPlayers(location, 5).filter {
|
||||
return@filter it.inCombat()
|
||||
return@filter !it.inCombat()
|
||||
}
|
||||
if(players.isNotEmpty()){
|
||||
val player = players.random()
|
||||
|
|
@ -106,4 +106,4 @@ class MortMyreGhastNPC : AbstractNPC {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue