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!
This commit is contained in:
Aleos 2020-05-18 16:51:46 -04:00 committed by GitHub
parent 936d5617b2
commit d9f533165e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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] )