Skip to content

Commit

Permalink
Make subpets synchronize their aggression state with the commander wh…
Browse files Browse the repository at this point in the history
…en summoned

Prevents mismatches.
  • Loading branch information
bm01 committed Nov 4, 2024
1 parent 8d4cc6f commit 6beffd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GameServer/gameobjects/Bonedancer/CommanderPet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,10 @@ public override bool AddControlledBrain(IControlledBrain controlledBrain)
{
foundSpot = true;
ControlledNpcList[i] = controlledBrain;

if (Brain is IControlledBrain commanderBrain)
controlledBrain.SetAggressionState(commanderBrain.AggressionState);

UpdatePetCount(true);
break;
}
Expand Down

0 comments on commit 6beffd5

Please sign in to comment.