mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Fix issue with trap auras casting on caster (#2378)
Unsure if something changed or I just failed to test correctly
This commit is contained in:
parent
216b6ef426
commit
25c6b055a4
@ -628,7 +628,7 @@ void Aura::ProcessEnterTrap(Mob *owner)
|
||||
continue;
|
||||
}
|
||||
// might need more checks ...
|
||||
if (owner->IsAttackAllowed(mob) && DistanceSquared(GetPosition(), mob->GetPosition()) <= distance) {
|
||||
if (mob != owner && owner->IsAttackAllowed(mob) && DistanceSquared(GetPosition(), mob->GetPosition()) <= distance) {
|
||||
SpellFinished(spell_id, mob);
|
||||
owner->RemoveAura(GetID(), false); // if we're a buff (ex. NEC) we don't want to strip :P
|
||||
break;
|
||||
@ -646,7 +646,7 @@ void Aura::ProcessExitTrap(Mob *owner)
|
||||
continue;
|
||||
}
|
||||
// might need more checks ...
|
||||
if (owner->IsAttackAllowed(mob)) {
|
||||
if (mob != owner && owner->IsAttackAllowed(mob)) {
|
||||
bool in_range = DistanceSquared(GetPosition(), mob->GetPosition()) <= distance;
|
||||
auto it = casted_on.find(mob->GetID());
|
||||
if (it != casted_on.end()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user