mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
Missing IsInGroupOrRaid cleanup
This commit is contained in:
+2
-2
@@ -2624,10 +2624,10 @@ bool NPC::Death(Mob* killer_mob, int64 damage, uint16 spell, EQ::skills::SkillTy
|
||||
bool owner_in_group = false;
|
||||
|
||||
if (
|
||||
give_exp->IsInGroupOrRaid(give_exp->GetUltimateOwner(), nullptr, RuleB(Bots, SameRaidGroupForXP)) ||
|
||||
give_exp->IsInGroupOrRaid(give_exp->GetUltimateOwner(), RuleB(Bots, SameRaidGroupForXP)) ||
|
||||
give_exp->IsPet() &&
|
||||
give_exp->GetOwner() &&
|
||||
give_exp->GetOwner()->IsInGroupOrRaid(give_exp->GetUltimateOwner(), nullptr, RuleB(Bots, SameRaidGroupForXP))
|
||||
give_exp->GetOwner()->IsInGroupOrRaid(give_exp->GetUltimateOwner(), RuleB(Bots, SameRaidGroupForXP))
|
||||
) {
|
||||
owner_in_group = true;
|
||||
}
|
||||
|
||||
@@ -506,7 +506,7 @@ void bot_command_cast(Client* c, const Seperator* sep)
|
||||
if (
|
||||
IsBotSpellTypeBeneficial(spellType) &&
|
||||
!RuleB(Bots, CrossRaidBuffingAndHealing) &&
|
||||
!bot_iter->IsInGroupOrRaid(newTar, nullptr, true)
|
||||
!bot_iter->IsInGroupOrRaid(newTar, true)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ void bot_command_depart(Client* c, const Seperator* sep)
|
||||
std::map<std::string, std::pair<uint8_t, uint8_t>> listZones;
|
||||
|
||||
for (auto bot_iter : sbl) {
|
||||
if (!bot_iter->IsInGroupOrRaid(tar, nullptr, !single)) {
|
||||
if (!bot_iter->IsInGroupOrRaid(tar, !single)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9965,7 +9965,7 @@ bool Mob::IsInGroupOrRaid(Mob *other, bool sameRaidGroup) {
|
||||
|
||||
Raid* raid = nullptr;
|
||||
|
||||
if (IsBot) {
|
||||
if (IsBot()) {
|
||||
CastToBot()->GetStoredRaid();
|
||||
}
|
||||
else {
|
||||
|
||||
+1
-1
@@ -781,7 +781,7 @@ public:
|
||||
virtual bool HasGroup() = 0;
|
||||
virtual Raid* GetRaid() = 0;
|
||||
virtual Group* GetGroup() = 0;
|
||||
bool IsInGroupOrRaid(Mob* other, Raid* raid = nullptr, bool sameRaidGroup = false);
|
||||
bool IsInGroupOrRaid(Mob* other, bool sameRaidGroup = false);
|
||||
|
||||
//Faction
|
||||
virtual inline int32 GetPrimaryFaction() const { return 0; }
|
||||
|
||||
Reference in New Issue
Block a user