This commit is contained in:
aozhiwei 2022-10-10 11:07:35 +08:00
parent 5cb408a24f
commit 8940c24404
2 changed files with 24 additions and 2 deletions

View File

@ -495,12 +495,32 @@ void Skill::ProcCMXD()
void Skill::ProcMYXY()
{
owner->GetTrigger()->AddListener
(
kStartSwitchWeaponBuffEvent,
[this] (const std::vector<std::any>& params)
{
Buff* buff = std::any_cast<Buff*>(params.at(0));
if (!buff->skill_meta || buff->skill_meta->GetMagicId() != MAGIC_HJHX) {
return;
}
}
);
owner->GetTrigger()->AddListener
(
kEndSwitchWeaponBuffEvent,
[this] (const std::vector<std::any>& params)
{
Buff* buff = std::any_cast<Buff*>(params.at(0));
if (!buff->skill_meta || buff->skill_meta->GetMagicId() != MAGIC_HJHX) {
return;
}
}
);
}
void Skill::ProcGZJS()
{
}
void Skill::ProcJYFH()

View File

@ -31,6 +31,8 @@ enum EventId_e
kYsRemoveEvent,
kStartRescueEvent,
kEndRescueEvent,
kStartSwitchWeaponBuffEvent,
kEndSwitchWeaponBuffEvent,
};
class Weapon;