This commit is contained in:
aozhiwei 2022-10-13 15:45:35 +08:00
parent 7b228eb690
commit 6483e8baea

View File

@ -10,6 +10,7 @@
#include "explosion.h"
#include "buff.h"
#include "human.h"
#include "bullet.h"
void Skill::Initialzie()
{
@ -678,8 +679,8 @@ void Skill::ProcGZJS()
[this, dmg_ruduce_rate, dmg_ruduce_timer, immune_buff_uniid]
(const std::vector<std::any>& params) mutable
{
Buff* buff = std::any_cast<Buff*>(params.at(0));
if (!buff->skill_meta || buff->skill_meta->GetMagicId() != MAGIC_HJHX) {
Bullet* bullet = std::any_cast<Bullet*>(params.at(0));
if (!bullet->skill_meta || bullet->skill_meta->GetMagicId() != MAGIC_HJHX) {
return;
}
if (!dmg_ruduce_timer.expired()) {
@ -727,10 +728,6 @@ void Skill::ProcGZJS()
kFlyHookDestoryEvent,
[this, dmg_ruduce_rate, immune_buff_uniid] (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;
}
if (*immune_buff_uniid) {
owner->RemoveBuffByUniId(*immune_buff_uniid);
*immune_buff_uniid = 0;