mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-13 03:28:28 +00:00
fix: deactivate bubble buff from server too (#1936)
This commit is contained in:
@@ -5931,6 +5931,7 @@ void GameMessages::HandleUpdatePlayerStatistic(RakNet::BitStream& inStream, Enti
|
|||||||
void GameMessages::HandleDeactivateBubbleBuff(RakNet::BitStream& inStream, Entity* entity) {
|
void GameMessages::HandleDeactivateBubbleBuff(RakNet::BitStream& inStream, Entity* entity) {
|
||||||
auto controllablePhysicsComponent = entity->GetComponent<ControllablePhysicsComponent>();
|
auto controllablePhysicsComponent = entity->GetComponent<ControllablePhysicsComponent>();
|
||||||
if (controllablePhysicsComponent) controllablePhysicsComponent->DeactivateBubbleBuff();
|
if (controllablePhysicsComponent) controllablePhysicsComponent->DeactivateBubbleBuff();
|
||||||
|
GameMessages::SendDeactivateBubbleBuffFromServer(entity->GetObjectID(), entity->GetSystemAddress());
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameMessages::HandleActivateBubbleBuff(RakNet::BitStream& inStream, Entity* entity) {
|
void GameMessages::HandleActivateBubbleBuff(RakNet::BitStream& inStream, Entity* entity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user