1
This commit is contained in:
parent
c2448528a1
commit
f7552686a7
@ -541,6 +541,16 @@ void Creature::RemoveBuffByUniId(int buff_uniid)
|
|||||||
removed_buffs.push_back(std::make_tuple(buff->meta, buff->GetCaster().Get()));
|
removed_buffs.push_back(std::make_tuple(buff->meta, buff->GetCaster().Get()));
|
||||||
OnBuffRemove(*buff.get());
|
OnBuffRemove(*buff.get());
|
||||||
buff->UnInit();
|
buff->UnInit();
|
||||||
|
#ifdef DEBUG
|
||||||
|
{
|
||||||
|
SendDebugMsg(a8::Format("移除buff_id:%d uniid:%d time:%d",
|
||||||
|
{
|
||||||
|
buff_id,
|
||||||
|
buff_uniid,
|
||||||
|
(room->GetFrameNo() - buff->add_frameno) * FRAME_RATE_MS
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
buff_list_.erase(itr);
|
buff_list_.erase(itr);
|
||||||
#ifdef DEBUG1
|
#ifdef DEBUG1
|
||||||
if (buff.use_count() > 1) {
|
if (buff.use_count() > 1) {
|
||||||
@ -572,16 +582,6 @@ void Creature::RemoveBuffByUniId(int buff_uniid)
|
|||||||
}
|
}
|
||||||
GetTrigger()->DeactiveBuff(buff_meta);
|
GetTrigger()->DeactiveBuff(buff_meta);
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
{
|
|
||||||
SendDebugMsg(a8::Format("移除buff_id:%d uniid:%d",
|
|
||||||
{
|
|
||||||
buff_id,
|
|
||||||
buff_uniid
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (GetHeroMeta() && GetHeroMeta()->id() == 60100) {
|
if (GetHeroMeta() && GetHeroMeta()->id() == 60100) {
|
||||||
room->BroadcastDebugMsg(a8::Format("remove boss buff %d %d",
|
room->BroadcastDebugMsg(a8::Format("remove boss buff %d %d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user