mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-30 20:22:04 +00:00 
			
		
		
		
	Added redundancy for smashing buff station
This commit is contained in:
		| @@ -7,5 +7,13 @@ void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) { | ||||
|  | ||||
|     if (skillComponent == nullptr) return; | ||||
|  | ||||
|     skillComponent->CalculateBehavior(skillIdForBuffStation, behaviorIdForBuffStation, self->GetObjectID()); | ||||
|     skillComponent->CalculateBehavior(201, 1784, self->GetObjectID()); | ||||
|      | ||||
|     self->AddTimer("DestroyAfter10Seconds", 10.0f); | ||||
| } | ||||
|  | ||||
| void AgSurvivalBuffStation::OnTimerDone(Entity* self, std::string timerName) { | ||||
|     if (timerName == "DestroyAfter10Seconds") { | ||||
|         self->Smash(); | ||||
|     } | ||||
| } | ||||
| @@ -11,6 +11,7 @@ public: | ||||
|      * @param target The target of the self that called this script. | ||||
|      */ | ||||
|     void OnRebuildComplete(Entity* self, Entity* target) override; | ||||
|     void OnTimerDone(Entity* self, std::string timerName) override; | ||||
| private: | ||||
|     /** | ||||
|      * Skill ID for the buff station. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 EmosewaMC
					EmosewaMC