Trapaceando a Morte
Passiva
Danos que te eliminariam deixam você com 5% da Maximum Health. Durante 3s, você sofre menos dano. Reativação: 120.
Referências
Dados brutos
- type
- Talent
- nature
- Passive
- id
- Rogue_Talent_CheatDeath
raw data
{
"id": "Rogue_Talent_CheatDeath",
"gfx": {
"x": 2,
"y": 4,
"file": "UI/icons/Rogue_talent.png",
"size": 48,
"width": 2,
"height": 2
},
"anim": {},
"type": 21,
"vars": {
"var1": 0.05,
"cooldown": 120
},
"flags": 0,
"props": {
"talent": {
"maxPoints": 1
}
},
"steps": [],
"texts": {
"desc": "Damage that should kill you leaves you at ::var1%:: of your [MaxHealth]. For ::ref_duration::, you take ::ref_val1%:: reduced damage. (::cooldown:: cooldown).",
"name": "Cheat Death",
"refs": {
"ref": "Rogue_Talent_CheatDeath_Status"
}
},
"nature": 5,
"script": "function onReceiveDamageEval(dmg) {\n\tif (!hasStatus(owner, Skill.Rogue_Talent_CheatDeath_Cooldown)) {\n\t\tvar threshold = owner.maxHealth * vars.var1;\n\t\tif (owner.health - dmg.amount < threshold) {\n\t\t\tvar effectiveDamage = min(threshold - dmg.amount, dmg.amount);\n\t\t\taddStatus(owner, Skill.Rogue_Talent_CheatDeath_Status);\n\t\t\taddStatusDuration(owner, Skill.Rogue_Talent_CheatDeath_Cooldown, vars.cooldown);\n\t\t\tdmg.amount = 0;\n\t\t\towner.health = threshold;\n\t\t}\n\t}\n}",
"status": 2,
"mastery": []
}