{
"id": "Priest_BeaconOfHope_Status",
"gfx": {
"x": 5,
"y": 0,
"file": "UI/icons/atlas_class_Priest_96PX.png",
"size": 96
},
"anim": {},
"vars": {
"dur1": 3,
"damage": 0.1
},
"flags": 0,
"props": {},
"steps": [
{
"id": "DamageBlast",
"on": 13,
"type": 4,
"props": {
"area": {
"shape": [
3,
3
],
"rangeScale": {
"targetRange": 20
},
"targetCooldown": 1.5
},
"loop": {
"tick": 0.1
}
},
"range": 1,
"effects": [
{
"flags": 0,
"dynVal": 1,
"effect": 0,
"scaling": [],
"affinity": "Light"
}
],
"visuals": {
"fxs": [
{
"set": "Priest_Prayer_Damage_Wave",
"flags": 40,
"props": {
"offset": {
"x": 0,
"y": 0,
"z": 0,
"height": 0.5
}
}
},
{
"set": "Priest_Prayer_Damage",
"flags": 16,
"props": {}
}
]
},
"duration": 1
},
{
"id": "HealBlast",
"on": 13,
"type": 4,
"props": {
"area": {
"shape": [
3,
3
],
"height": [
2,
1
],
"hitFilter": 6,
"rangeScale": {
"targetRange": 20
},
"targetCooldown": 1.5
},
"loop": {
"tick": 0.1
}
},
"range": 1,
"effects": [
{
"flags": 0,
"dynVal": 2,
"effect": 1,
"scaling": [],
"affinity": "Light"
}
],
"visuals": {
"fxs": [
{
"set": "Priest_Prayer_Heal_Wave",
"flags": 40,
"props": {},
"space": 0
},
{
"set": "Priest_Prayer_Heal",
"flags": 0,
"props": {}
}
]
},
"duration": 1
},
{
"id": "Stun",
"on": 13,
"cond": {
"step": "DamageBlast",
"mastery": "Priest_BeaconOfHope_M1"
},
"type": 1,
"props": {
"status": {
"ref": "Stun"
}
},
"duration": "dur1"
},
{
"id": "AllyAura",
"on": 0,
"cond": {
"mastery": "Priest_BeaconOfHope_M2"
},
"type": 19,
"props": {
"area": {
"hitFilter": 6
},
"loop": {
"tick": 0.5
},
"status": {
"ref": "Priest_BeaconOfHope_Status_Buff"
},
"position": {
"offsetZ": 1
}
},
"range": 25,
"duration": "dur1"
},
{
"id": "EnemyAura",
"on": 0,
"cond": {
"mastery": "Priest_BeaconOfHope_M2"
},
"type": 19,
"props": {
"area": {
"hitFilter": 1
},
"loop": {
"tick": 0.5
},
"status": {
"ref": "Priest_BeaconOfHope_Status_Debuff"
},
"position": {
"offsetZ": 1
}
},
"range": 25,
"duration": "dur1"
}
],
"texts": {},
"nature": 4,
"script": "var releasing = false;\nfunction onInflictDamage(dmg) {\n\tif (releasing) {return;}\n\taddDynVal(1, dmg.amount * vars.damage);\n\n}\n\nfunction onDamage(dmg) {\n\tif (hasMastery(Mastery.Priest_BeaconOfHope_M1)) {\n\t\tplayStep(Steps.Stun, dmg.target);\n\t\tdmg.target.addStatus(Skill.Stun, 1, status.instigatorSkill, status.instigator, vars.dur1);\n\t}\n}\n\nfunction onInflictHeal(dmg) {\n\tif (releasing) {return;}\n\taddDynVal(2, dmg.amount * vars.damage);\n}\n\nfunction onUpdate(dt) {\n\tvar dur = status.getDurationLeft();\n\n\tif (dur < 0.5 && dur > 0) {\n\t\treleasing = true;\n\t\tvar damage = getDynVal(1);\n\t\tif (damage > 0) {\n\t\t\tplayStep(Steps.DamageBlast);\n\t\t}\n\t\tvar heal = getDynVal(2);\n\t\tif (heal > 0) {\n\t\t\tplayStep(Steps.HealBlast);\n\t\t}\n\t\tstop();\n\t}\n}",
"status": 2,
"mastery": [],
"duration": 10
}