for( vch = ch->in_room->first_person; vch; vch = vch_next )
{
vch_next = vch->next_in_room;
if( is_same_group( ch, vch ) || !is_legal_kill( ch, vch ) || !can_see( ch, vch ) || is_safe( ch, vch )
|| !IS_NPC( vch ) )
continue;
|| IS_NPC (ch) && IS_NPC (vch)
|| is_same_group (vch, ch))
&& (ch->fighting == vch || vch->fighting == ch))
|| is_same_group (vch, ch )
&& (ch->fighting == vch || vch->fighting == ch) ) )
if(( is_same_group (vch, ch) || (IS_NPC (ch) && IS_NPC (vch)) || is_safe (ch, vch ) && (ch->fighting == vch || vch->fighting == ch) ) )
continue;
if ((is_safe_spell (ch, vch, TRUE) || (IS_NPC (ch) && IS_NPC (vch)) || is_same_group (vch, ch)) && (ch->fighting == vch || vch->fighting == ch))
continue;
[Health]: 1588/1697 [Move]: 30000/30000 [$$]:[45000]|>
cedit bob create
Log: Banner: cedit bob create
Command added.
[Force]: 30014/30014 [Align]: good
[Health]: 1588/1697 [Move]: 30000/30000 [$$]:[45000]|>
mi puff
Log: Banner: mi puff
You invoke Puff: (#1 - Puff - lvl: 151)
[Force]: 30014/30014 [Align]: good
[Health]: 1588/1697 [Move]: 30000/30000 [$$]:[45000]|>
mi cop
Log: Banner: mi cop
You invoke a street judge: (#32832 - Twi'lek police officer cop street judge - lvl: 44)
[Force]: 30014/30014 [Align]: good
[Health]: 1588/1697 [Move]: 30000/30000 [$$]:[45000]|>
force puff follow banner
Log: Banner: force puff follow banner
Puff now follows you.
Force complete.
[Force]: 30014/30014 [Align]: good
[Health]: 1588/1697 [Move]: 30000/30000 [$$]:[45000]|>
group puff
Puff joins your group.
[Force]: 30014/30014 [Align]: good
[Health]: 1588/1697 [Move]: 30000/30000 [$$]:[45000]|>
bob
You summon a blizzard
Your -( MUTILATES )- a street judge! <[112]>
A street judge has some cuts.
Enemy: [++++++++++]
[Force]: 30014/30014 [Align]: good
[Health]: 1588/1697 [Move]: 30000/30000 [$$]:[45000]|>
You dodge a street judge's attack.
You dodge a street judge's attack.
Your blast -)(- EVISCERATES -)(- a street judge! <[317]>
You critically hit a street judge!
Your blast DOES UN-GODLY THINGS to a street judge! <[853]>
a street judge is DEAD!
You gain 1470 experience in your Combat ability.
You gain 2939 experience in your Leadership ability.
You are now wanted on ryloth.
the corpse of a street judge contains:
Nothing.
cold_effect (ch->in_room, level, dam, TARGET_ROOM);
I am running a ROM 2.4 (QuickMUD version) and my players have noticed that the area attacks that I've added are targeting their pets…
for (vch = ch->in_room->people; vch != NULL; vch = vch_next)
{
vch_next = vch->next_in_room;
if ((is_safe_spell (ch, vch, TRUE)
|| IS_NPC (ch) && IS_NPC (vch)
–>>>Added this into it: || is_same_group (ch, vch))
&& (ch->fighting == vch || vch->fighting == ch))
continue;
I've tried flipping the ch and vch part together and it's still not wanting to work properly.
At one point this was working properly, but I must've gotten carried away at some point and removed the pet/follower line.
Can anyone help me get it so my area attacks no longer attack pets/group members?
–Silence Tyire of Reanimation