chooseToUse/chooseToRespond针对数组型logSkill取消发动的bugfix

国战春哥【清冷】bug来源
This commit is contained in:
mengxinzxz 2024-04-05 22:08:06 +08:00
parent 3cb8661020
commit 307c873455
1 changed files with 2 additions and 2 deletions

View File

@ -3267,7 +3267,7 @@ export const Content = {
event.result._sendskill = event._sendskill;
}
if ((!event.result || !event.result.bool || event.result._noHidingTimer) && (event.result.skill || event.logSkill)) {
var info = get.info(event.result.skill || event.logSkill);
var info = get.info(event.result.skill || (Array.isArray(event.logSkill) ? event.logSkill[0] : event.logSkill));
if (info.direct && !info.clearTime) {
_status.noclearcountdown = 'direct';
}
@ -3454,11 +3454,11 @@ export const Content = {
if (event.result._sendskill) {
lib.skill[event.result._sendskill[0]] = event.result._sendskill[1];
}
var info = get.info(event.result.skill);
if (event.onresult) {
event.onresult(event.result);
}
if ((!event.result || !event.result.bool || event.result._noHidingTimer) && (event.result.skill || event.logSkill)) {
var info = get.info(event.result.skill || (Array.isArray(event.logSkill) ? event.logSkill[0] : event.logSkill));
if (info.direct && !info.clearTime) {
_status.noclearcountdown = 'direct';
}