1
This commit is contained in:
parent
36d8036d25
commit
7673c49071
@ -9,6 +9,7 @@
|
||||
#include "skillhelper.h"
|
||||
|
||||
#include "mt/Skill.h"
|
||||
#include "mt/Buff.h"
|
||||
#include "mt/SkillNumber.h"
|
||||
|
||||
void HoldShieldBuff::Activate()
|
||||
@ -32,9 +33,10 @@ void HoldShieldBuff::Activate()
|
||||
(
|
||||
SMT_BLINK,
|
||||
SkillHelper::GetLdfyBuffTime(owner, skill_meta) * 1000,
|
||||
[c]
|
||||
[this, c]
|
||||
{
|
||||
c->RemoveBuffByEffectId(kBET_HoldShield);
|
||||
c->TryAddBuff(c, meta->_int_buff_param2);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -2701,6 +2701,7 @@ void Creature::CheckBulletHitHoldShield(IBullet* bullet, bool& eat)
|
||||
a8::XPrintf("shiled destory\n", {});
|
||||
#endif
|
||||
GetTrigger()->ShieldDestory();
|
||||
TryAddBuff(this, hold_shield_buff->meta->_int_buff_param1);
|
||||
RemoveBuffByUniId(hold_shield_buff->buff_uniid);
|
||||
}
|
||||
eat = true;
|
||||
|
@ -189,6 +189,16 @@ void SelfChecker::Init()
|
||||
}
|
||||
}
|
||||
break;
|
||||
case kBET_HoldShield:
|
||||
{
|
||||
if (meta->_int_buff_param1) {
|
||||
SelfChecker::AddBuff(meta->_int_buff_param1);
|
||||
}
|
||||
if (meta->_int_buff_param2) {
|
||||
SelfChecker::AddBuff(meta->_int_buff_param2);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user