FareverDB

Going With the Flow

Fists_WaterUppercut_P in Skills

Erupts water, dealing 20% Intellect + 26% Intellect Magic to nearby enemies when using a [ComboAttack] or [WeaponSkill] different from the last action.

id
Fists_WaterUppercut_P
type
24
flags
0
nature
5
script
var lastSkillProc = null; function onInflictDamage(dmg) { var s = dmg.skill; if( s != null && dmg.isFirstHit && lastSkillProc != s.kind && isSkillCompatible(s) ) { playStep(Steps.Eruption); lastSkillProc = s.kind; } } function isSkillCompatible(s) { if(s == null || s.isPassive()) return false; return s.isWeaponSkill() || s.isFinalAttack(); } function onHit(hit) { if( rank >= 2 ) { addStatus(hit.target, Skill.Fists_WaterUppercut_P_Status_Slow); } }
status
2
Raw data
{
  "id": "Fists_WaterUppercut_P",
  "gfx": {
    "x": 10,
    "y": 0,
    "file": "UI/icons/atlas_weapon_Fists_96PX.png",
    "size": 48,
    "width": 2,
    "height": 2
  },
  "anim": {},
  "type": 24,
  "vars": {
    "var1": 0.3
  },
  "flags": 0,
  "props": {},
  "steps": [
    {
      "id": "Eruption",
      "on": 13,
      "type": 4,
      "delay": 0.1,
      "props": {},
      "range": 5,
      "effects": [
        {
          "flags": 0,
          "effect": 0,
          "scaling": [
            {
              "atb": "Intellect",
              "conds": {
                "maxRank": 1
              },
              "ratio": 0.2
            },
            {
              "atb": "Intellect",
              "conds": {
                "minRank": 2
              },
              "ratio": 0.26
            }
          ],
          "affinity": "Magic"
        }
      ],
      "visuals": {
        "fxs": [
          {
            "set": "Water_AOE_FloorImpact",
            "flags": 0,
            "props": {},
            "space": 1
          }
        ]
      }
    },
    {
      "on": 0,
      "props": {}
    }
  ],
  "texts": {
    "desc": "Erupts water, dealing ::dmg:: to nearby enemies when using a [ComboAttack] or [WeaponSkill] different from the last action.",
    "name": "Going With the Flow",
    "refs": {
      "ref": "Fists_WaterUppercut_P_Status",
      "ref2": "Fists_WaterUppercut_P_Status_Slow"
    },
    "rankDescs": [
      {
        "desc": "Damage increased by ::var1%::.",
        "rank": 2,
        "flags": 0
      },
      {
        "desc": "Slows enemies by ::ref2_val1%:: for ::ref2_dur::.",
        "rank": 3,
        "flags": 0
      }
    ]
  },
  "nature": 5,
  "script": "var lastSkillProc = null;\n\nfunction onInflictDamage(dmg) {\n\tvar s = dmg.skill;\n\tif( s != null && dmg.isFirstHit && lastSkillProc != s.kind && isSkillCompatible(s) ) {\n\t\tplayStep(Steps.Eruption);\n\t\tlastSkillProc = s.kind;\n\t}\n}\n\nfunction isSkillCompatible(s) {\n\tif(s == null || s.isPassive())\n\t\treturn false;\n\treturn s.isWeaponSkill() || s.isFinalAttack();\n}\n\nfunction onHit(hit) {\n\tif( rank >= 2 ) {\n\t\taddStatus(hit.target, Skill.Fists_WaterUppercut_P_Status_Slow);\n\t}\n}",
  "status": 2,
  "mastery": []
}