|
|
|
@ -19,7 +19,7 @@ export class Duan extends SufPassiveSkill {
@@ -19,7 +19,7 @@ export class Duan extends SufPassiveSkill {
|
|
|
|
|
} |
|
|
|
|
takeEffect(owner: BattleRole, target: BattleRole): void { |
|
|
|
|
target.addHp(-1 * this.dmg); |
|
|
|
|
owner.battleLog(replace(st('duan.2'), [this.hpPercent, this.dmg])); |
|
|
|
|
owner.extraDmgLog(replace(st('duan.2'), [this.hpPercent, this.dmg])); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//红眼
|
|
|
|
@ -41,7 +41,7 @@ export class HongYan extends PrePassiveSkill {
@@ -41,7 +41,7 @@ export class HongYan extends PrePassiveSkill {
|
|
|
|
|
if (this.trigger(owner, target)) { |
|
|
|
|
const additional = Math.ceil((owner.atk * this.atkPercent) / 100); |
|
|
|
|
target.addHp(-1 * additional); |
|
|
|
|
owner.battleLog(replace(st('hongyan.2'), [this.hpPercent, additional])); |
|
|
|
|
owner.extraDmgLog(replace(st('hongyan.2'), [this.hpPercent, additional])); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -61,14 +61,14 @@ export class ShaYi extends SufPassiveSkill {
@@ -61,14 +61,14 @@ export class ShaYi extends SufPassiveSkill {
|
|
|
|
|
takeEffect(owner: BattleRole, target: BattleRole): void { |
|
|
|
|
const shayi = new BaseAtkPercentBuff(this.name, this.atkPercent, 9999, this.maxLayer); |
|
|
|
|
owner.putBuff(shayi, this.retains); |
|
|
|
|
owner.battleLog(replace(st('shayi.2'), [shayi.layer])); |
|
|
|
|
owner.gainLog(replace(st('shayi.2'), [shayi.layer])); |
|
|
|
|
} |
|
|
|
|
onAtked(owner: BattleRole, target: BattleRole): void { |
|
|
|
|
if (target.crit) { |
|
|
|
|
const shayi = new BaseAtkPercentBuff(this.name, this.atkPercent, 9999, this.maxLayer); |
|
|
|
|
shayi.layer = -1 * this.reduc; |
|
|
|
|
owner.putBuff(shayi, this.retains); |
|
|
|
|
owner.battleLog(replace(st('shayi.3'), [this.reduc])); |
|
|
|
|
owner.debuffLog(replace(st('shayi.3'), [this.reduc])); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -88,7 +88,7 @@ export class NuMu extends CounterSkill {
@@ -88,7 +88,7 @@ export class NuMu extends CounterSkill {
|
|
|
|
|
takeEffect(owner: BattleRole, target: BattleRole): void { |
|
|
|
|
const numu = new BaseAtkPercentBuff(this.name, this.atkPercent, 9999, this.maxLayer); |
|
|
|
|
owner.putBuff(numu); |
|
|
|
|
owner.battleLog(replace(st('numu.2'), [numu.layer])); |
|
|
|
|
owner.gainLog(replace(st('numu.2'), [numu.layer])); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//龙腾
|
|
|
|
@ -109,7 +109,7 @@ export class LongTeng extends CounterSkill {
@@ -109,7 +109,7 @@ export class LongTeng extends CounterSkill {
|
|
|
|
|
takeEffect(owner: BattleRole, target: BattleRole): void { |
|
|
|
|
const shield = Math.ceil((owner.attr.hp * this.shieldPercentOfHp) / 100); |
|
|
|
|
owner.shield += shield; |
|
|
|
|
owner.battleLog(replace(st('longteng.2'), [shield])); |
|
|
|
|
owner.gainLog(replace(st('longteng.2'), [shield])); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//幸运数字
|
|
|
|
@ -121,7 +121,7 @@ export class XingYunShuZi extends SufPassiveSkill {
@@ -121,7 +121,7 @@ export class XingYunShuZi extends SufPassiveSkill {
|
|
|
|
|
} |
|
|
|
|
beforeBattle(owner: BattleRole, target: BattleRole): void { |
|
|
|
|
this.num = Math.ceil(Math.random() * 9); |
|
|
|
|
owner.battleLog(replace(st('xingyunshuzi.2'), [t(owner.type), this.num])); |
|
|
|
|
owner.gainLog(replace(st('xingyunshuzi.2'), [t(owner.type), this.num])); |
|
|
|
|
} |
|
|
|
|
trigger(owner: BattleRole, target: BattleRole): boolean { |
|
|
|
|
return this.num > 0 && owner.dmg % 10 == this.num; |
|
|
|
@ -129,6 +129,6 @@ export class XingYunShuZi extends SufPassiveSkill {
@@ -129,6 +129,6 @@ export class XingYunShuZi extends SufPassiveSkill {
|
|
|
|
|
takeEffect(owner: BattleRole, target: BattleRole): void { |
|
|
|
|
const dmg = owner.dmg * this.num; |
|
|
|
|
target.addHp(-1 * dmg); |
|
|
|
|
owner.battleLog(replace(st('xingyunshuzi.3'), [t(target.type), dmg])); |
|
|
|
|
owner.extraDmgLog(replace(st('xingyunshuzi.3'), [t(target.type), dmg])); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|