{
"id": "R1CrabBoss_NayasFury",
"gfx": {
"x": 36,
"y": 38,
"file": "UI/Placeholder/Icons_Resources.png",
"size": 48,
"width": 2,
"height": 2
},
"anim": {
"ref": "Cast",
"loop": true
},
"type": 11,
"vars": {},
"flags": 0,
"props": {
"costs": [
{
"atb": "SpecialEnergy",
"amount": 100
}
]
},
"steps": [
{
"on": 0,
"type": 13,
"props": {},
"duration": 0.3
},
{
"on": 0,
"type": 3,
"props": {},
"duration": 10
},
{
"on": 0,
"type": 11,
"props": {},
"range": 70,
"visuals": {
"fxs": [
{
"set": "Water_Crabgantua_Nova_Cast",
"flags": 8,
"props": {},
"space": 0
}
]
},
"duration": 9
},
{
"id": "StopGeysers",
"on": 7,
"type": 11,
"delay": -1,
"props": {}
},
{
"id": "CastEnd",
"on": 7,
"type": 11,
"props": {},
"visuals": {
"playAnims": [
{
"anim": {
"ref": "Special",
"file": "Anim/GiantCrawler/_Boss_Crabgantua/Anim_GiantCrawler_Crabgantua_Smash.fbx",
"playAnims": [
{
"anim": {
"ref": "Attack"
}
}
]
}
}
]
}
},
{
"id": "SpawnCrab",
"on": 7,
"type": 11,
"delay": 5,
"props": {}
},
{
"on": 7,
"type": 11,
"delay": 3.9,
"props": {},
"visuals": {
"fxs": [
{
"set": "Water_Crabgantua_Nova",
"props": {},
"space": 1
}
]
}
},
{
"on": 7,
"type": 4,
"delay": 4.2,
"props": {
"area": {
"shape": [
3,
8
],
"height": [
2,
5
],
"rangeScale": {
"targetRange": 90
}
},
"loop": {
"tick": 0.1
}
},
"range": 8,
"effects": [
{
"flags": 0,
"effect": 0,
"baseVal": 0,
"scaling": [
{
"atb": "FoePower",
"ratio": 10
}
],
"affinity": "Water",
"sideEffects": {
"knockBack": {
"type": 1,
"pushForce": 30,
"knockUpForce": 20
}
}
}
],
"duration": 2
},
{
"on": 7,
"type": 24,
"props": {},
"duration": 6
}
],
"texts": {
"name": "Naya's Fury"
},
"nature": 2,
"script": "var geysers: Array<ent.GameObject> = [];\nvar roundCount = 0;\nfunction onStart(ctx) {\n geysers = getGameObjectsInRange(owner, 100, function(o) {\n if( toTriggerZone(o) != null )\n return true;\n return false;\n });\n setGeysersEnabled(true);\n requestUnitGameplayPopup(owner, 0, 10);\n\troundCount++;\n}\n\nfunction onStep(s) {\n\tif( s.kind == Steps.StopGeysers )\n\t\tsetGeysersEnabled(false);\n\n if( isServer && s.kind == Steps.SpawnCrab ){\n\t\tfor(i in 0...roundCount) {\n\t\t\tfor(g in [\"spawn1\", \"spawn2\", \"spawn3\"])\n\t\t\t\tsummonGroup(UnitGroup.Crabgantua_Crabs, g);\n\t\t}\n }\n}\n\nfunction onStop(ctx) {\n setGeysersEnabled(false);\n}\n\nfunction setGeysersEnabled(b: Bool) {\n if( !isServer )\n return;\n for( g in geysers ) {\n var tz = toTriggerZone(g);\n if( tz != null )\n tz.setEnabledState(b);\n }\n}",
"status": 5,
"aiProps": {
"pickPrio": 10,
"castMaxRange": 20,
"recoveryTime": 4
},
"mastery": [],
"cooldown": 15,
"duration": 6
}