浏览代码

Fixed Pressure not removing Kyrie Eleison in Renewal (#9200)

- In renewal Pressure now removes Kyrie Eleison
- In pre-renewal Pressure still ignores Kyrie Eleison (even though it has the trait to also remove it)
- Fixes #9199
Playtester 1 月之前
父节点
当前提交
6ac181503f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/map/battle.cpp

+ 3 - 1
src/map/battle.cpp

@@ -1238,7 +1238,9 @@ bool battle_status_block_damage(struct block_list *src, struct block_list *targe
 			else
 				damage = -sce->val2;
 		}
-		if ((--sce->val3) <= 0 || (sce->val2 <= 0) || skill_id == AL_HOLYLIGHT)
+		// Pressure usually won't reach this code in pre-renewal and does consequently not remove Kyrie
+		// But it's still coded to do that - this reflects how it is done officially
+		if ((--sce->val3) <= 0 || (sce->val2 <= 0) || skill_id == AL_HOLYLIGHT || skill_id == PA_PRESSURE)
 			status_change_end(target, SC_KYRIE);
 	}