mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Rules] Evac Aggro Wipe (#3880)
clear aggro on evac spells, special case of wiping aggro for clients
This commit is contained in:
+12
-4
@@ -572,12 +572,16 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
#ifdef SPELL_EFFECT_SPAM
|
||||
LogDebug("Succor/Evacuation Spell In Same Zone");
|
||||
#endif
|
||||
if(IsClient())
|
||||
if (IsClient()) {
|
||||
CastToClient()->MovePC(zone->GetZoneID(), zone->GetInstanceID(), x, y, z, heading, 0, EvacToSafeCoords);
|
||||
else
|
||||
} else {
|
||||
GMMove(x, y, z, heading);
|
||||
}
|
||||
else {
|
||||
}
|
||||
|
||||
if (RuleB(Spells, EvacClearAggroInSameZone)) {
|
||||
entity_list.ClearAggro(this);
|
||||
}
|
||||
} else {
|
||||
#ifdef SPELL_EFFECT_SPAM
|
||||
LogDebug("Succor/Evacuation Spell To Another Zone");
|
||||
#endif
|
||||
@@ -1514,6 +1518,10 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
|
||||
int wipechance = 0;
|
||||
|
||||
if (RuleB(Spells, EvacClearAggroInSameZone) && !wipechance && IsClient()) {
|
||||
entity_list.ClearAggro(this);
|
||||
}
|
||||
|
||||
if (caster) {
|
||||
wipechance = caster->GetMemoryBlurChance(effect_value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user