This commit is contained in:
aozhiwei 2023-02-28 18:32:02 +08:00
parent ecf5d6042f
commit c5d37f6d18
3 changed files with 4 additions and 10 deletions

View File

@ -40,6 +40,7 @@ void HoldShieldBuff::Activate()
{
c->RemoveBuffByEffectId(kBET_HoldShield);
c->TryAddBuff(c, meta->_int_buff_param2);
Pound();
}
);
}
@ -68,20 +69,13 @@ void HoldShieldBuff::Activate()
break;
}
}
owner->GetTrigger()->AddListener
(
kShieldDestoryEvent,
[this] (const a8::Args& params)
{
OnShieldDestory(params);
});
}
void HoldShieldBuff::Deactivate()
{
}
void HoldShieldBuff::OnShieldDestory(const a8::Args& params)
void HoldShieldBuff::Pound()
{
if (!skill_meta || skill_meta->GetMagicId() != MAGIC_21001_NIU) {
return;

View File

@ -10,6 +10,6 @@ class HoldShieldBuff : public Buff
virtual void Deactivate() override;
private:
void OnShieldDestory(const a8::Args& params);
void Pound();
};

View File

@ -62,7 +62,7 @@ void Explosion::ProcDamage()
(
room_,
center_.GetX(),
center_.GetY(),
center_.GetZ(),
grid_list
);
std::set<Entity*> objects;