Bladeren bron

Fixes Frost Nova versus targets on Land Protector (#6185)

* Fixes #5926.
* Frost Nova will no longer damage targets who are standing on Land Protector.
Thanks to @Miraakol and @Playtester!
Aleos 3 jaren geleden
bovenliggende
commit
729482a019
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      src/map/skill.cpp

+ 2 - 0
src/map/skill.cpp

@@ -17828,6 +17828,8 @@ int skill_attack_area(struct block_list *bl, va_list ap)
 		case WZ_FROSTNOVA: //Skills that don't require the animation to be removed
 		case WZ_FROSTNOVA: //Skills that don't require the animation to be removed
 			if (src->x == bl->x && src->y == bl->y)
 			if (src->x == bl->x && src->y == bl->y)
 				return 0; //Does not hit current cell
 				return 0; //Does not hit current cell
+			if (map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR)) // Attack should not happen if the target is on Land Protector
+				return 0;
 			//Fall through
 			//Fall through
 		case NPC_ACIDBREATH:
 		case NPC_ACIDBREATH:
 		case NPC_DARKNESSBREATH:
 		case NPC_DARKNESSBREATH: