From 93d2c8f4aa64a075cf9713def6f9b5da238c678e Mon Sep 17 00:00:00 2001 From: damighty <27978131-real_damighty@users.noreply.gitlab.com> Date: Mon, 18 Aug 2025 13:49:54 +0300 Subject: [PATCH] Poison immune enemies are now immune to poison --- Server/src/main/core/api/ContentAPI.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Server/src/main/core/api/ContentAPI.kt b/Server/src/main/core/api/ContentAPI.kt index ef1cfbad7..09e0840d5 100644 --- a/Server/src/main/core/api/ContentAPI.kt +++ b/Server/src/main/core/api/ContentAPI.kt @@ -3034,6 +3034,9 @@ fun applyPoison (entity: Entity, source: Entity, severity: Int) { if(hasTimerActive(entity)) { return } + if(entity.isPoisonImmune()) { + return + } val existingTimer = getTimer(entity) if (existingTimer != null) {