Fixes Cross Impact on GvG and Battleground maps (#5823)

* Fixes #5775.
* Cross Impact is now usable on GvG and Battleground map types.
Thanks to @mazvi!
This commit is contained in:
Aleos 2021-04-06 11:22:52 -04:00 committed by GitHub
parent f592b17d75
commit fc8e63a2af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5682,7 +5682,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint
}
break;
case GC_CROSSIMPACT:
if (skill_check_unit_movepos(5, src, bl->x, bl->y, 1, 1)) {
if (skill_check_unit_movepos(0, src, bl->x, bl->y, 1, 1)) {
skill_blown(src, src, 1, (map_calc_dir(bl, src->x, src->y) + 4) % 8, BLOWN_IGNORE_NO_KNOCKBACK); // Target position is actually one cell next to the target
skill_attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);
} else {