Queen's Decree
DS_Bladeleaf_Passive in SkillsThe next time one of your skills deals [Magic] damage, it is increased by 100% (30 cooldown).
- id
- DS_Bladeleaf_Passive
- type
- 24
- flags
- 0
- nature
- 5
- script
- function onInflictDamageEval(hit) { if (!isInCooldown()) { if (hit.isMagic && hit.isSkill) { hit.dmgMult += vars.damage; consumeStatus(owner, Skill.DS_Bladeleaf_Passive_Status); consumeCooldown(); } } } function onRegUpdate(dt) { if (isInCooldown()) { return; } if (!hasStatus(owner, Skill.DS_Bladeleaf_Passive_Status)) { addStatus(owner, Skill.DS_Bladeleaf_Passive_Status); } } function onInflictDamage(dmg) { if (rank >= 3) { if (dmg.critical && dmg.baseSkill.kind != skill.kind && isInCooldown()) { playStep(Steps.Damage, dmg.target); } } /*if (dmg.isMagic) { wait(0.1, () -> {consumeCooldown();}); }*/ }
- status
- 1
- cooldown
- 30
Raw data
{
"id": "DS_Bladeleaf_Passive",
"gfx": {
"x": 8,
"y": 0,
"file": "UI/icons/atlas_weapon_Dual_Sword_96px.png",
"size": 48,
"width": 2,
"height": 2
},
"anim": {},
"type": 24,
"vars": {
"var1": 4,
"damage": 1
},
"flags": 0,
"props": {
"rankOverride": [
{
"props": {
"cooldown": 20
},
"minRank": 2
}
]
},
"steps": [
{
"on": 0,
"type": 11,
"props": {},
"visuals": {
"fxs": [
{
"set": "Honey_Aura_Spear",
"flags": 8,
"props": {},
"space": 0,
"attachName": "Weapon"
}
]
},
"duration": -1
},
{
"id": "Damage",
"on": 13,
"type": 6,
"props": {},
"effects": [
{
"flags": 0,
"effect": 0,
"scaling": [
{
"atb": "Intellect",
"ratio": 0.2
}
],
"affinity": "Magic"
}
]
}
],
"texts": {
"desc": "The next time one of your skills deals [Magic] damage, it is increased by ::damage%:: (::cooldown:: cooldown).",
"name": "Queen's Decree",
"refs": {
"ref": "Spear_Goo_Skill2"
},
"rankDescs": [
{
"desc": "Cooldown reduced to ::cooldown::.",
"rank": 2,
"flags": 1
},
{
"desc": "While this is on cooldown, all your critical strikes deal an additional ::dmg::.",
"rank": 3,
"flags": 0
}
]
},
"nature": 5,
"script": "function onInflictDamageEval(hit) {\n\tif (!isInCooldown()) {\n\t\tif (hit.isMagic && hit.isSkill) {\n\t\t\thit.dmgMult += vars.damage;\n\t\t\tconsumeStatus(owner, Skill.DS_Bladeleaf_Passive_Status);\n\t\t\tconsumeCooldown();\n\t\t}\n\t}\n}\n\nfunction onRegUpdate(dt) {\n\tif (isInCooldown()) {\n\t\treturn;\n\t}\n\tif (!hasStatus(owner, Skill.DS_Bladeleaf_Passive_Status)) {\n\t\taddStatus(owner, Skill.DS_Bladeleaf_Passive_Status);\n\t}\n}\n\nfunction onInflictDamage(dmg) {\n\tif (rank >= 3) {\n\t\tif (dmg.critical && dmg.baseSkill.kind != skill.kind && isInCooldown()) {\n\t\t\tplayStep(Steps.Damage, dmg.target);\n\t\t}\n\t}\n\n\t/*if (dmg.isMagic) {\n\t\twait(0.1, () -> {consumeCooldown();});\n\t}*/\n}",
"status": 1,
"mastery": [],
"cooldown": 30
}