Jump to content
  • 0

Reduce water ball hits


Jinzo7

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.13
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/31/25
  • Last Seen:  

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
 
 
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  170
  • Reputation:   55
  • Joined:  07/15/13
  • Last Seen:  

Change the skill duration 10000 to 600 in skill_db.yml

 

  - Id: 86
    Name: WZ_WATERBALL
    Description: Water Ball
    MaxLevel: 5
    Type: Magic
    TargetType: Attack
    Flags:
      IsAutoShadowSpell: true
    Range: 9
    Hit: Multi_Hit
    HitCount: 1
    Element: Water
    CopyFlags:
      Skill:
        Plagiarism: true
        Reproduce: true
    CastTime:
      - Level: 1
        Time: 1000
      - Level: 2
        Time: 2000
      - Level: 3
        Time: 3000
      - Level: 4
        Time: 4000
      - Level: 5
        Time: 5000
      - Level: 6
        Time: 6000
      - Level: 7
        Time: 7000
      - Level: 8
        Time: 8000
      - Level: 9
        Time: 9000
      - Level: 10
        Time: 10000
    Duration1: 10000

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...