Core/Entities: Fix combat state setting when FFA PvP flag is set
Description: Currently there is an issue, when you are in FFA areas, but you dont have PvP flag activated. You should get the PvP-In-Combat delay timer, but instead you just get the usual timer as if you would not fight in PvP. Reproduction: 1) Get two players in FFA area Gurubashi arena down in the battle area (.tele Gurubashi) 2) Fight each other 3) When stopping combat, the combat state will switch off immediately. But it is supposed to switch off after some delay, because it was a PvP fight. Closes #11103 Signed-off-by: Duarte Duarte <dnpd.dd@gmail.com>
This commit is contained in:
1 parent
80a398372d
commit
88ecc9533a
5 files changed
+13
-12
No files matched your search
@@ -11626,7 +11626,7 @@ bool Unit::IsServiceProvider() const
|
||||
void Unit::SetInCombatWith(Unit* enemy)
|
||||
{
|
||||
Unit* eOwner = enemy->GetCharmerOrOwnerOrSelf();
|
||||
if (eOwner->IsPvP())
|
||||
if (eOwner->IsPvP() || eOwner->IsFFAPvP())
|
||||
{
|
||||
SetInCombatState(true, enemy);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user