mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
Merge pull request #481 from EmosewaMC/buff-station-faction
Corrected faction for Buff Station
This commit is contained in:
commit
4724e0ebc1
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
|
void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
|
||||||
auto destroyableComponent = self->GetComponent<DestroyableComponent>();
|
auto destroyableComponent = self->GetComponent<DestroyableComponent>();
|
||||||
// We set the faction to 6 so that the buff station sees players as friendly targets to buff
|
// We set the faction to 1 so that the buff station sees players as friendly targets to buff
|
||||||
if (destroyableComponent != nullptr) destroyableComponent->SetFaction(6);
|
if (destroyableComponent != nullptr) destroyableComponent->SetFaction(1);
|
||||||
|
|
||||||
auto skillComponent = self->GetComponent<SkillComponent>();
|
auto skillComponent = self->GetComponent<SkillComponent>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user