1
This commit is contained in:
parent
5954ead5b5
commit
000fa0b789
@ -995,6 +995,7 @@ void Creature::ProcBuffEffect(Creature* caster, Buff* buff)
|
||||
{
|
||||
if (IsValidSlotId(buff->meta->int_param1)) {
|
||||
buff_inventory_[buff->meta->int_param1].num += buff->meta->int_param2;
|
||||
need_sync_active_player = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -3150,6 +3150,7 @@ void Human::OnBuffRemove(Buff& buff)
|
||||
buff_inventory_[buff.meta->int_param1].num -= buff.meta->int_param2;
|
||||
buff_inventory_[buff.meta->int_param1].num =
|
||||
std::max(0, buff_inventory_[buff.meta->int_param1].num);
|
||||
need_sync_active_player = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user