Home · skill · Warrior_SecondWind
Damage that should kill you leaves you at 1 Health and grants you the effects of Rage Shield (120 cooldown).
Properties
- status
- Done
- type
- Talent
- nature
- Passive
- cooldown
- 120
Referenced by
unit (1)
Raw data
{
"status": "Done",
"gfx": {
"file": "UI/icons/Warrior_talent.png",
"size": 96,
"x": 1,
"y": 2
},
"id": "Warrior_SecondWind",
"type": "Talent",
"nature": "Passive",
"texts": {
"name": "Second Wind",
"desc": "Damage that should kill you leaves you at ::var1:: [Health] and grants you the effects of ::ref_name:: (::cooldown:: cooldown).",
"refs": {
"ref": "Warrior_Talent_RageShield_Status"
}
},
"anim": {},
"cooldown": 120,
"steps": [],
"flags": [],
"mastery": [],
"props": {
"talent": {
"maxPoints": 1
}
},
"vars": {
"cooldown": 120,
"var1": 1
},
"script": "function onReceiveDamageEval(dmg) {\n\tif (hasStatus(owner, Skill.Warrior_SecondWind_Cooldown)) { return; }\n\tvar deltaToOne = owner.health + owner.getShield() - 1;\n\tif (dmg.amount >= deltaToOne) {\n\t\tdmg.amount = 0;\n\t\towner.health = 1;\n\t\taddStatus(owner, Skill.Warrior_Talent_RageShield_Status);\n\t\taddStatusDuration(owner, Skill.Warrior_SecondWind_Cooldown, vars.cooldown);\n\t}\n}",
"_xrefs": [
{
"from_sheet": "unit",
"from_id": "Warrior",
"via_field": "talentTrees"
}
]
}