Thanks to a friend, I managed to make the Water Ball skill work outside of water, but it is too strong, and I would like to nerf it a little if possible.
Can anyone tell me how I can reduce the number of hits of this skill? From 25 to 10 or 5?
Below I send the code that made it work out of water:
case WZ_WATERBALL:
// Check if there are cells that can be turned into waterball units
if (!sd || map_getcell(src->m, ux, uy, CELL_CHKWATER)) {
break; // There is no water to create the skill
}
// Allows the skill to be activated on top of SA_DELUGE and NJ_SUITON without consuming cells
if ((map_find_skill_unit_oncell(src, ux, uy, SA_DELUGE, nullptr, 1)) != nullptr
|| (map_find_skill_unit_oncell(src, ux, uy, NJ_SUITON, nullptr, 1)) != nullptr) {
// The cell contains Deluge or Suiton, so the skill is activated, but the cell is not consumed
// It just allows you to continue without the cell removal mechanic
continue;
}
// Normal cell consumption process (otherwise)
unit = map_find_skill_unit_oncell(src, ux, uy, WZ_WATERBALL, nullptr, 0);
i
f (unit) skill_delunit(unit); // Remove the Waterball cell only if it is not Deluge or Suiton