🐞 fix(诸侯混战): 城门dot伤害防御
This commit is contained in:
@@ -259,7 +259,7 @@ export class CityActivityHandler {
|
|||||||
if (gateHp <= 0) return resResult(STATUS.GATE_HP_IS_ZERO);
|
if (gateHp <= 0) return resResult(STATUS.GATE_HP_IS_ZERO);
|
||||||
|
|
||||||
let hero = await HeroModel.findBySeqIdAndRole(hid, roleId);
|
let hero = await HeroModel.findBySeqIdAndRole(hid, roleId);
|
||||||
if(!hero) damage = 0;
|
if(!hero && (damage/maxHp > 0.01)) damage = 0;
|
||||||
|
|
||||||
let statusResult = getGuildActivityStatus(this.aid);
|
let statusResult = getGuildActivityStatus(this.aid);
|
||||||
if (!statusResult) return resResult(STATUS.DIC_DATA_NOT_FOUND);
|
if (!statusResult) return resResult(STATUS.DIC_DATA_NOT_FOUND);
|
||||||
|
|||||||
Reference in New Issue
Block a user