From 83e970c29b5f7234d05f3ea623355e17dc00e8e8 Mon Sep 17 00:00:00 2001 From: imstuckbro Date: Mon, 14 Sep 2026 20:34:02 +0300 Subject: [PATCH] Core/Spells: Self-actions should no longer extend pvp timer(#31916) Co-authored-by: Kaytotes (cherry picked from commit f0649bd5d4b3db26663ea1b9de26657638067491) --- src/server/game/Spells/Spell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index c72ec41e5d..03cde96c0b 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -2766,7 +2766,8 @@ void Spell::TargetInfo::PreprocessTarget(Spell* spell) // if target is flagged for pvp also flag caster if a player // but respect current pvp rules (buffing/healing npcs flagged for pvp only flags you if they are in combat) _enablePVP = (MissCondition == SPELL_MISS_NONE || spell->m_spellInfo->HasAttribute(SPELL_ATTR3_PVP_ENABLING)) - && unit->IsPvP() && (unit->IsInCombat() || unit->IsCharmedOwnedByPlayerOrPlayer()) && spell->m_caster->GetTypeId() == TYPEID_PLAYER; // need to check PvP state before spell effects, but act on it afterwards + && unit->IsPvP() && spell->m_caster->IsPlayer() && spell->m_caster->GetGUID() != unit->GetGUID() + && (unit->IsInCombat() || unit->IsCharmedOwnedByPlayerOrPlayer()); // need to check PvP state before spell effects, but act on it afterwards if (_spellHitTarget) {