1
This commit is contained in:
parent
d42b92cac1
commit
bfb8a257a9
@ -150,6 +150,13 @@ int Creature::AddBuff(Creature* caster,
|
|||||||
std::shared_ptr<a8::Args> init_args,
|
std::shared_ptr<a8::Args> init_args,
|
||||||
std::shared_ptr<std::vector<float>> buff_vars)
|
std::shared_ptr<std::vector<float>> buff_vars)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
if (GetHeroMeta()->id() == 60100) {
|
||||||
|
room->BroadcastDebugMsg(a8::Format("add boss buff %d %d",
|
||||||
|
{buff_meta->buff_id(),
|
||||||
|
buff_meta->buff_effect()}));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
int buff_id = buff_meta->buff_id();
|
int buff_id = buff_meta->buff_id();
|
||||||
if (buff_meta->_only_spec_race) {
|
if (buff_meta->_only_spec_race) {
|
||||||
if (!a8::HasBitFlag(buff_meta->_only_spec_race, GetEntityType())) {
|
if (!a8::HasBitFlag(buff_meta->_only_spec_race, GetEntityType())) {
|
||||||
@ -572,6 +579,14 @@ void Creature::RemoveBuffByUniId(int buff_uniid)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
if (GetHeroMeta()->id() == 60100) {
|
||||||
|
room->BroadcastDebugMsg(a8::Format("remove boss buff %d %d",
|
||||||
|
{buff_meta->buff_id(),
|
||||||
|
buff_meta->buff_effect()}));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
for (const auto& tuple : buff_meta->_post_remove_action) {
|
for (const auto& tuple : buff_meta->_post_remove_action) {
|
||||||
switch (std::get<0>(tuple)) {
|
switch (std::get<0>(tuple)) {
|
||||||
case kRemoveBuffByIdAction:
|
case kRemoveBuffByIdAction:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user