1
This commit is contained in:
parent
7b228eb690
commit
6483e8baea
@ -10,6 +10,7 @@
|
|||||||
#include "explosion.h"
|
#include "explosion.h"
|
||||||
#include "buff.h"
|
#include "buff.h"
|
||||||
#include "human.h"
|
#include "human.h"
|
||||||
|
#include "bullet.h"
|
||||||
|
|
||||||
void Skill::Initialzie()
|
void Skill::Initialzie()
|
||||||
{
|
{
|
||||||
@ -678,8 +679,8 @@ void Skill::ProcGZJS()
|
|||||||
[this, dmg_ruduce_rate, dmg_ruduce_timer, immune_buff_uniid]
|
[this, dmg_ruduce_rate, dmg_ruduce_timer, immune_buff_uniid]
|
||||||
(const std::vector<std::any>& params) mutable
|
(const std::vector<std::any>& params) mutable
|
||||||
{
|
{
|
||||||
Buff* buff = std::any_cast<Buff*>(params.at(0));
|
Bullet* bullet = std::any_cast<Bullet*>(params.at(0));
|
||||||
if (!buff->skill_meta || buff->skill_meta->GetMagicId() != MAGIC_HJHX) {
|
if (!bullet->skill_meta || bullet->skill_meta->GetMagicId() != MAGIC_HJHX) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!dmg_ruduce_timer.expired()) {
|
if (!dmg_ruduce_timer.expired()) {
|
||||||
@ -727,10 +728,6 @@ void Skill::ProcGZJS()
|
|||||||
kFlyHookDestoryEvent,
|
kFlyHookDestoryEvent,
|
||||||
[this, dmg_ruduce_rate, immune_buff_uniid] (const std::vector<std::any>& params)
|
[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) {
|
if (*immune_buff_uniid) {
|
||||||
owner->RemoveBuffByUniId(*immune_buff_uniid);
|
owner->RemoveBuffByUniId(*immune_buff_uniid);
|
||||||
*immune_buff_uniid = 0;
|
*immune_buff_uniid = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user