FareverDB

Deadly Blossom

Mokshi_DeadlyBlossom in Skills
id
Mokshi_DeadlyBlossom
type
11
flags
0
nature
3
script
var spawnRadius = 6; var spawnDelay = 0; function onStep(s) { switch(s.kind) { case Steps.GenerateProjectiles: var projStep = getStepById(Steps.Projectile); var nb = vars.var1; if( owner.phase == 3 ) { nb = 10; } var count = round(nb); var interProgress = 1 / (count); var pos = projStep.getProjectileStart(); var rotProgress = owner.rotationZ / PI; for(i in 0...count) { var tPos = p3DAdd(pos, getCircleFacingPos(rotProgress + interProgress * i, spawnRadius, owner.getUp())); wait(i * spawnDelay, function() { projStep.generateProjectile(owner, tPos); }); } case Steps.LaunchProjectiles: s.curCtx?.activateProjectiles(); default: } } function onStop(ctx) { ctx.killProjectiles(); }
status
0
cooldown
50
duration
1
Raw data
{
  "id": "Mokshi_DeadlyBlossom",
  "gfx": {
    "x": 36,
    "y": 38,
    "file": "UI/Placeholder/Icons_Resources.png",
    "size": 48,
    "width": 2,
    "height": 2
  },
  "anim": {
    "file": "Anim/Faerie/_Boss_Mokshi/Anim_Faerie_Mokshi_Blossom_Start.fbx"
  },
  "type": 11,
  "vars": {
    "var1": 5
  },
  "flags": 0,
  "props": {
    "needTarget": true
  },
  "steps": [
    {
      "on": 0,
      "type": 13,
      "props": {
        "rotation": {
          "limiter": 320
        }
      },
      "duration": 5
    },
    {
      "on": 0,
      "type": 11,
      "props": {},
      "visuals": {
        "fxs": [
          {
            "set": "HoneySpark_Blink_Disappear",
            "flags": 68,
            "props": {},
            "space": 1,
            "attachName": "Socket_FaerieCenter"
          },
          {
            "set": "HoneySpark_Blink_Local",
            "flags": 12,
            "props": {},
            "space": 0,
            "attachName": "Socket_FaerieCenter"
          }
        ]
      },
      "duration": 1
    },
    {
      "on": 0,
      "type": 17,
      "delay": 0.5,
      "props": {
        "position": {
          "element": "Mokshi_ArenaCenter"
        }
      }
    },
    {
      "on": 0,
      "type": 11,
      "delay": 0.51,
      "props": {},
      "visuals": {
        "fxs": [
          {
            "set": "HoneySpark_Blink_Appear",
            "flags": 68,
            "props": {},
            "space": 1,
            "attachName": "Socket_FaerieCenter"
          }
        ]
      }
    },
    {
      "on": 0,
      "type": 3,
      "props": {
        "castFlags": 8
      },
      "duration": 8
    },
    {
      "id": "GenerateProjectiles",
      "on": 0,
      "delay": 1,
      "props": {}
    },
    {
      "id": "Projectile",
      "on": 8,
      "type": 7,
      "props": {
        "projectile": {
          "base": "Orbitter",
          "fxSet": "Projectile_Flower_Shuriken_Spawn",
          "orbit": {
            "height": 0.5,
            "radius": 5,
            "radiusCurve": [
              0,
              0.996718619110752,
              -0.5,
              0,
              0.128430951118847,
              0,
              0.424535411201079,
              9.55628329198388,
              -0.293925118198522,
              0.000139886577470526,
              0.290557650862069,
              0,
              0.801800307417772,
              -0.685957995398257,
              -0.166666666666667,
              0,
              -0.5,
              0
            ]
          },
          "scale": 2.5,
          "speed": 20,
          "offset": {
            "x": 0,
            "y": 0,
            "z": -5
          },
          "lifetime": 7,
          "hitFilter": 1,
          "activationDelay": 1
        }
      }
    },
    {
      "id": "LaunchProjectiles",
      "on": 0,
      "delay": 3,
      "props": {}
    },
    {
      "on": 0,
      "type": 11,
      "delay": 4.8,
      "props": {},
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "file": "Anim/Faerie/_Boss_Mokshi/Anim_Faerie_Mokshi_Blossom_Loop.fbx",
              "loop": true
            }
          }
        ]
      }
    },
    {
      "on": 7,
      "type": 11,
      "delay": -0.9,
      "props": {},
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "file": "Anim/Faerie/_Boss_Mokshi/Anim_Faerie_Mokshi_Blossom_End.fbx"
            }
          }
        ]
      }
    },
    {
      "on": 2,
      "type": 0,
      "props": {},
      "effects": [
        {
          "flags": 0,
          "effect": 0,
          "scaling": [
            {
              "atb": "FoePower",
              "ratio": 0.85
            }
          ],
          "affinity": "Physical",
          "sideEffects": {
            "knockBack": {
              "type": 1,
              "pushForce": 30,
              "knockUpForce": 10
            }
          }
        }
      ]
    }
  ],
  "texts": {
    "name": "Deadly Blossom"
  },
  "nature": 3,
  "script": "var spawnRadius = 6;\nvar spawnDelay = 0;\nfunction onStep(s) {\n    switch(s.kind) {\n        case Steps.GenerateProjectiles:\n            var projStep = getStepById(Steps.Projectile);\n\t\t\tvar nb = vars.var1;\n\t\t\tif( owner.phase == 3 ) {\n\t\t\t\tnb = 10;\n\t\t\t}\n\t\t\tvar count =  round(nb);\n            var interProgress = 1 / (count);\n            var pos = projStep.getProjectileStart();\n            var rotProgress = owner.rotationZ / PI;\n            for(i in 0...count) {\n                var tPos = p3DAdd(pos, getCircleFacingPos(rotProgress + interProgress * i, spawnRadius, owner.getUp()));\n                wait(i * spawnDelay, function() {\n                    projStep.generateProjectile(owner, tPos);\n                });\n            }\n        case Steps.LaunchProjectiles:\n            s.curCtx?.activateProjectiles();\n        default:\n    }\n}\n\nfunction onStop(ctx) {\n    ctx.killProjectiles();\n}",
  "status": 0,
  "aiProps": {
    "pickPrio": 10,
    "castMaxRange": 50
  },
  "mastery": [],
  "cooldown": 50,
  "duration": 1
}