1
This commit is contained in:
parent
7b228eb690
commit
6483e8baea
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user