This commit is contained in:
aozhiwei 2021-04-27 14:43:31 +08:00
parent ef8465e3dc
commit 4c12596090
5 changed files with 19 additions and 0 deletions

View File

@ -168,3 +168,10 @@ bool Buff::NeedSync(Human* hum)
{ {
return !meta->i->only_server() || !(meta->i->only_self() && owner == hum); return !meta->i->only_server() || !(meta->i->only_self() && owner == hum);
} }
void Buff::ProcBecome(Creature* caster)
{
if (caster->IsHuman()) {
}
}

View File

@ -37,6 +37,7 @@ class Buff
void ProcBatchAddBuff(Creature* caster); void ProcBatchAddBuff(Creature* caster);
void ProcSummonHero(Creature* caster); void ProcSummonHero(Creature* caster);
void ProcBeRecycle(Creature* caster); void ProcBeRecycle(Creature* caster);
void ProcBecome(Creature* caster);
private: private:
void InternalTimerAddBuff(Creature* caster); void InternalTimerAddBuff(Creature* caster);

View File

@ -52,6 +52,7 @@ enum BuffEffectType_e
kBET_Sprint = 35, //冲刺 kBET_Sprint = 35, //冲刺
kBET_SummonObstacle = 36, //召唤物件 kBET_SummonObstacle = 36, //召唤物件
kBET_FlashMove = 37, //瞬间移动 kBET_FlashMove = 37, //瞬间移动
kBET_Become = 38, //变身
kBET_FollowMaster = 49, //跟随主人 kBET_FollowMaster = 49, //跟随主人
kBET_ThroughWall = 50, //穿墙 kBET_ThroughWall = 50, //穿墙

View File

@ -901,6 +901,11 @@ void Creature::ProcBuffEffect(Creature* caster, Buff* buff)
buff->ProcBeRecycle(caster); buff->ProcBeRecycle(caster);
} }
break; break;
case kBET_Become:
{
buff->ProcBecome(caster);
}
break;
default: default:
{ {
} }

View File

@ -3230,6 +3230,11 @@ void Human::OnBuffRemove(const Buff& buff)
); );
} }
break; break;
case kBET_Become:
{
}
break;
default: default:
break; break;
} }