mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 11:12:25 +00:00
[Bots] ST_AreaClientOnly spells to land on Bots (#2849)
This commit is contained in:
parent
032d423add
commit
9a544650ee
@ -1025,7 +1025,7 @@ void EntityList::AESpell(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spells[spell_id].target_type == ST_AreaClientOnly && !current_mob->IsClient()) {
|
if (spells[spell_id].target_type == ST_AreaClientOnly && !current_mob->IsOfClientBot()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1038,13 +1038,11 @@ void EntityList::AESpell(
|
|||||||
* 1 = PC
|
* 1 = PC
|
||||||
* 2 = NPC
|
* 2 = NPC
|
||||||
*/
|
*/
|
||||||
if (spells[spell_id].pcnpc_only_flag == 1 && !current_mob->IsClient() && !current_mob->IsMerc() &&
|
if (spells[spell_id].pcnpc_only_flag == 1 && !current_mob->IsOfClientBotMerc()) {
|
||||||
!current_mob->IsBot()) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spells[spell_id].pcnpc_only_flag == 2 &&
|
if (spells[spell_id].pcnpc_only_flag == 2 && current_mob->IsOfClientBotMerc()) {
|
||||||
(current_mob->IsClient() || current_mob->IsMerc() || current_mob->IsBot())) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1185,7 +1183,7 @@ void EntityList::MassGroupBuff(
|
|||||||
if (current_mob->IsNPC()) {
|
if (current_mob->IsNPC()) {
|
||||||
Mob *owner = current_mob->GetOwner();
|
Mob *owner = current_mob->GetOwner();
|
||||||
if (owner) {
|
if (owner) {
|
||||||
if (!owner->IsClient()) {
|
if (!owner->IsOfClientBot()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user