Refactored Antifire potion effect

Relicym Balm can now cure disease
Antifire potion effect now persists through log out
This commit is contained in:
DeadlyGenga
2025-02-01 13:53:10 +00:00
committed by Ryan
parent 6e9f3cb8b9
commit 3d7e93b6c2
4 changed files with 73 additions and 4 deletions
+1 -1
View File
@@ -3122,7 +3122,7 @@ fun calculateDragonfireMaxHit(entity: Entity, maxDamage: Int, wyvern: Boolean =
if (entity is Player) {
hasShield = hasDragonfireShieldProtection(entity, wyvern)
hasPotion = !wyvern && getAttribute(entity, "fire:immune", 0) >= getWorldTicks()
hasPotion = !wyvern && hasTimerActive<DragonFireImmunity>(entity)
hasPrayer = entity.prayer.get(PrayerType.PROTECT_FROM_MAGIC)
if (sendMessage) {