fix(Core/Entities): fix contested flag timer when logging out and in (#8558)

This commit is contained in:
jestermaniac
2021-10-17 03:26:13 +02:00
committed by GitHub
parent 6bcebda0ee
commit 8c126075ff
3 changed files with 16 additions and 11 deletions

View File

@@ -2296,7 +2296,7 @@ public:
void SetLastManaUse(uint32 spellCastTime) { m_lastManaUse = spellCastTime; }
[[nodiscard]] bool IsUnderLastManaUseEffect() const;
void SetContestedPvP(Player* attackedPlayer = nullptr);
void SetContestedPvP(Player* attackedPlayer = nullptr, bool lookForNearContestedGuards = true);
uint32 GetCastingTimeForBonus(SpellInfo const* spellProto, DamageEffectType damagetype, uint32 CastingTime) const;
float CalculateDefaultCoefficient(SpellInfo const* spellInfo, DamageEffectType damagetype) const;