This commit is contained in:
aozhiwei 2024-05-24 13:20:37 +08:00
parent 1cc6e36f60
commit 46cdd93d4a
2 changed files with 5 additions and 0 deletions

View File

@ -542,6 +542,7 @@ void CallFuncBuff::ProcFlashMove()
void CallFuncBuff::ProcAddEnergyShield()
{
int buff_id = meta->buff_id();
if (!owner->dead && !owner->downed) {
float dur_time = meta->GetBuffParam3(this);
if (dur_time < 0.00001f) {
@ -1844,6 +1845,7 @@ void CallFuncBuff::OnBreakSkillPostExec()
void CallFuncBuff::RandAdd()
{
int buff_id = meta->buff_id();
hold_param2_ = meta->GetBuffParam2(this) * 100;
if (hold_param2_ >= a8::RandEx(0, 100)) {
for (auto buff_id : meta->_buff_param3_int_list) {

View File

@ -14,6 +14,8 @@
#include "mapinstance.h"
#include "team.h"
#include "loot.h"
#include "ability.h"
#include "trigger.h"
#include "cs_proto.pb.h"
@ -162,6 +164,7 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
dmg_out,
0,
0);
GetTrigger()->BeAttack(GetUniId());
}
} else if (cmd == "add_shield") {
if (cmds.size() > 1) {