[Spells] Allow GMs to remove buffs from any target (#1907)

This commit is contained in:
j883376 2021-12-30 20:40:14 -05:00 committed by GitHub
parent c99c5c1f1c
commit d280d54446
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3903,6 +3903,10 @@ void Client::Handle_OP_BuffRemoveRequest(const EQApplicationPacket *app)
else if (brrs->EntityID == GetPetID()) { else if (brrs->EntityID == GetPetID()) {
m = GetPet(); m = GetPet();
} }
else if (GetGM())
{
m = entity_list.GetMobID(brrs->EntityID);
}
#ifdef BOTS #ifdef BOTS
else { else {
Mob* bot_test = entity_list.GetMob(brrs->EntityID); Mob* bot_test = entity_list.GetMob(brrs->EntityID);
@ -3919,7 +3923,7 @@ void Client::Handle_OP_BuffRemoveRequest(const EQApplicationPacket *app)
uint16 SpellID = m->GetSpellIDFromSlot(brrs->SlotID); uint16 SpellID = m->GetSpellIDFromSlot(brrs->SlotID);
if (SpellID && (IsBeneficialSpell(SpellID) || IsEffectInSpell(SpellID, SE_BindSight)) && !spells[SpellID].no_remove) { if (SpellID && (GetGM() || ((IsBeneficialSpell(SpellID) || IsEffectInSpell(SpellID, SE_BindSight)) && !spells[SpellID].no_remove))) {
m->BuffFadeBySlot(brrs->SlotID, true); m->BuffFadeBySlot(brrs->SlotID, true);
} }
} }