Add server calculation for RemoveBuffBehavior

This commit is contained in:
David Markowitz
2025-07-17 23:15:42 -07:00
parent 6792953d10
commit 4458291398
2 changed files with 5 additions and 0 deletions

View File

@@ -15,6 +15,10 @@ void RemoveBuffBehavior::Handle(BehaviorContext* context, RakNet::BitStream& bit
buffComponent->RemoveBuff(m_BuffId, false, m_RemoveImmunity);
}
void RemoveBuffBehavior::Calculate(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) {
Handle(context, bitStream, branch);
}
void RemoveBuffBehavior::Load() {
this->m_RemoveImmunity = GetBoolean("remove_immunity");
this->m_BuffId = GetInt("buff_id");

View File

@@ -13,6 +13,7 @@ public:
}
void Handle(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) override;
void Calculate(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) override;
void Load() override;