mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-20 01:58:27 +00:00
More fixes
TGB, ^cast, group/ae checks, in group/raid checks, inviting others bots to group, group disband fix, prevent rogue bs spam, ^follow fixes and cleanup, follow owner only by default when joining raid/group, group buff fixes for bots, range fixes for group buffs
This commit is contained in:
+1
-11
@@ -176,13 +176,7 @@ void Bot::ProcessRaidInvite(Mob* invitee, Client* invitor, bool group_invite) {
|
||||
// If the Bot Owner is in our raid we need to be able to invite their Bots
|
||||
}
|
||||
else if (invitee->IsBot() && (invitee->CastToBot()->GetBotOwnerCharacterID() != invitor->CharacterID())) {
|
||||
invitor->Message(
|
||||
Chat::Red,
|
||||
fmt::format(
|
||||
"{} is not your Bot. You can only invite your own Bots, or Bots that belong to a Raid member.",
|
||||
invitee->GetCleanName()
|
||||
).c_str()
|
||||
);
|
||||
invitor->Message(Chat::Red, "%s's owner needs to be in your raid to be able to invite them.", invitee->GetCleanName());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -257,10 +251,6 @@ void Bot::CreateBotRaid(Mob* invitee, Client* invitor, bool group_invite, Raid*
|
||||
} else {
|
||||
raid->AddBot(b);
|
||||
}
|
||||
|
||||
if (new_raid) {
|
||||
invitee->SetFollowID(invitor->GetID());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user