|
|
|
@ -32,7 +32,7 @@ export class JinGangZhuo extends SufPassiveSkill {
@@ -32,7 +32,7 @@ export class JinGangZhuo extends SufPassiveSkill {
|
|
|
|
|
return replace(t('skill.jinggangzhuo.1'), [this.rate, this.last]); |
|
|
|
|
} |
|
|
|
|
trigger(owner: BattleRole, target: BattleRole): boolean { |
|
|
|
|
return Math.random() < this.rate / 100; |
|
|
|
|
return owner.dmg > 0 && Math.random() < this.rate / 100; |
|
|
|
|
} |
|
|
|
|
takeEffect(owner: BattleRole, target: BattleRole): void { |
|
|
|
|
target.putBuff(new ControlBuff(this.name, this.last)); |
|
|
|
|