瀏覽代碼

Fixes Adoramus' interaction with Land Protector (#4920)

* Fixes #4876.
* Adoramus should not do damage to anyone inside the range of Adoramus.
Thanks to @teededung and @Tokeiburu!
Aleos 5 年之前
父節點
當前提交
d9f533165e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/map/skill.cpp

+ 3 - 0
src/map/skill.cpp

@@ -5168,6 +5168,9 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint
 			if (tsc && tsc->data[SC_HOVERING] && inf2[INF2_IGNOREHOVERING])
 				break; // Under Hovering characters are immune to select trap and ground target skills.
 
+			if (skill_id == AB_ADORAMUS && map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR))
+				break; // No damage should happen if the target is on Land Protector
+
 			if( flag&SD_LEVEL )
 				sflag |= SD_LEVEL; // -1 will be used in packets instead of the skill level
 			if( skill_area_temp[1] != bl->id && !inf2[INF2_ISNPC] )