Home · skill · Priest_Sig_DivineIntervention
Properties
- status
- Bug
- type
- Signature Skill
- nature
- Spell
- cooldown
- 12
- duration
- 0.45
- steps
- mastery
Referenced by
unit (1)
Raw data
{
"status": "Bug",
"gfx": {
"file": "UI/icons/atlas_class_Priest_96PX.png",
"size": 96,
"x": 0,
"y": 0
},
"id": "Priest_Sig_DivineIntervention",
"type": "SignatureSkill",
"nature": "Spell",
"texts": {
"name": "Judgment",
"desc": "Releases a nova that activates all ready [Prayer]s.\n\nEach [Prayer] has its own condition to become ready.",
"refs": {
"ref": "Priest_Judgment_Status",
"ref2": "Priest_Judgment_Status2"
}
},
"anim": {
"ref": "PriestJudgment",
"blend": 0.15
},
"cooldown": 12,
"duration": 0.45,
"steps": [
{
"on": 0,
"props": {},
"type": 0,
"range": 0,
"id": "ProcDelay",
"delay": 0.25
}
],
"flags": [],
"mastery": [
{
"id": "Priest_Judgment_M1",
" vars": {},
"gfx": {
"file": "UI/Portraits/Items/Masteries/Priest_Sig_DivineIntervention/Priest_Judgment_M1.png",
"size": 256,
"x": 0,
"y": 0
},
"text": {
"name": "Spirited Disciple",
"desc": "::name:: increases your [PhysicalMastery] and your [MagicMastery] by ::ref_val1%:: when you activate ::var1:: [Prayer]s all at once."
},
"vars": {
"var1": 3
}
},
{
"id": "Priest_Judgment_M2",
"gfx": {
"file": "UI/Portraits/Items/Masteries/Priest_Sig_DivineIntervention/Priest_Judgment_M2.png",
"size": 256,
"x": 0,
"y": 0
},
"text": {
"name": "Alacrity",
"desc": "Readying a [Prayer] reduces the cooldown of ::name:: by ::time::."
},
"vars": {
"time": 2
}
},
{
"id": "Priest_Judgment_M3",
"gfx": {
"file": "UI/Portraits/Items/Masteries/Priest_Sig_DivineIntervention/Priest_Judgment_M3.png",
"size": 256,
"x": 0,
"y": 0
},
"text": {
"name": "Revitalized Soul",
"desc": "::name:: increases your [MoveSpeedFactor] by ::ref2_val1%:: for ::ref2_duration::."
}
}
],
"props": {
"id": "Warrior_Berserk_M1",
" vars": {},
"gfx": {
"file": "UI/Portraits/Items/CraftingComponent/Items_Loot_Affinities_Fragment_Water.prefab.png",
"size": 256,
"x": 0,
"y": 0
},
"text": {
"name": "Releasing the chains"
}
},
"vars": {},
"script": "function onStep(s) {\n\tif(s.kind == Steps.ProcDelay) {\n\t\tvar priest = ownerHero?.priest;\n\t\tif(priest != null) {\n\t\t\tpriest.divineInterventionProc();\n\t\t}\n\t}\n}\n\n\n\nfunction onSkillProc(ctx) {\n\tif (ctx.skillId == skill.kind) {\n\t\tvar priest = ownerHero?.priest;\n\t\tif (priest != null) {\n\t\t\tif (hasMastery(Mastery.Priest_Judgment_M1)) {\n\t\t\t\tvar prayers = priest.getChargedPrayerCount();\n\t\t\t\tif (prayers == vars.var1) {\n\t\t\t\t\taddStatus(owner, Skill.Priest_Judgment_Status);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (hasMastery(Mastery.Priest_Judgment_M3)) {\n\t\t\t\taddStatus(owner, Skill.Priest_Judgment_Status2);\n\t\t\t}\n\t\t}\n\t}\n}\n\nvar lastReadyPrayers = 0;\nfunction onRegUpdate(dt) {\n\tif (hasMastery(Mastery.Priest_Judgment_M2)) {\n\t\tvar priest = ownerHero?.priest;\n\t\tif (priest != null) {\n\t\t\tvar ready = priest.getChargedPrayerCount();\n\t\t\tvar gain = ready - lastReadyPrayers;\n\t\t\tif (gain > 0) {\n\t\t\t\tfor (i in 0...gain) {\n\t\t\t\t\treduceCooldown(Skill.Priest_Sig_DivineIntervention, vars.time);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlastReadyPrayers = ready;\n\t\t}\n\t}\n}\n\nfunction checkEnabled() {\n\tvar priest = ownerHero?.priest;\n\tif(priest == null)\n\t\treturn Reason.Invalid;\n\tif(priest.getChargedPrayerCount() == 0)\n\t\treturn Reason.RequireActivePrayer;\n\treturn Reason.Ok;\n}",
"_xrefs": [
{
"from_sheet": "unit",
"from_id": "Priest",
"via_field": "skills"
}
]
}