This commit is contained in:
aozhiwei 2023-03-07 14:10:08 +08:00
parent cb53ecd496
commit a8eb421b4e

View File

@ -228,23 +228,9 @@ void Skill::DoMinorMode()
{
if (GetMinorType() != SMT_NONE) {
minor_cb_(1);
minor_type_ = SMT_NONE;
minor_cd_time_ = 0;
minor_cb_ = nullptr;
ResetSkillCd();
if (owner->IsHuman()) {
Human* hum = owner->AsHuman();
owner->room->frame_event.AddPropChgEx
(
owner->GetWeakPtrRef(),
kPropSkillMinor,
minor_type_,
minor_cd_time_,
minor_cd_time_,
meta->skill_id(),
true
);
NotifySkillState();
if (!minor_mode_timer_.expired()) {
owner->room->xtimer.Delete(minor_mode_timer_);
}
}
}