We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3294cee commit 9081319Copy full SHA for 9081319
Intersect.Server.Core/Entities/Npc.cs
@@ -1340,7 +1340,12 @@ public override bool IsAllyOf(Entity otherEntity)
1340
switch (otherEntity)
1341
{
1342
case Npc otherNpc:
1343
- return Base == otherNpc.Base;
+ if (!Base.NpcVsNpcEnabled && !otherNpc.Base.NpcVsNpcEnabled)
1344
+ {
1345
+ return true;
1346
+ }
1347
+
1348
+ return !otherNpc.CanNpcCombat(this);
1349
case Player otherPlayer:
1350
var conditionLists = Base.PlayerFriendConditions;
1351
if ((conditionLists?.Count ?? 0) == 0)
0 commit comments