mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11569] Remove recently added area switch time duel check.
Only duel start expected to be limited by area. Duel end controlled only distance/map and outOfBound timer
This commit is contained in:
parent
5ec1203c4f
commit
e17f7bf4d5
3 changed files with 1 additions and 14 deletions
|
|
@ -6791,9 +6791,6 @@ void Player::UpdateArea(uint32 newArea)
|
|||
|
||||
if (area)
|
||||
{
|
||||
// check leave duel allowed area
|
||||
CheckDuelArea(area);
|
||||
|
||||
// Dalaran restricted flight zone
|
||||
if ((area->flags & AREA_FLAG_CANNOT_FLY) && IsFreeFlying() && !isGameMaster() && !HasAura(58600))
|
||||
CastSpell(this, 58600, true); // Restricted Flight Area
|
||||
|
|
@ -6900,15 +6897,6 @@ void Player::UpdateZone(uint32 newZone, uint32 newArea)
|
|||
UpdateZoneDependentPets();
|
||||
}
|
||||
|
||||
void Player::CheckDuelArea(AreaTableEntry const* areaEntry)
|
||||
{
|
||||
if (!duel)
|
||||
return;
|
||||
|
||||
if (!(areaEntry->flags & AREA_FLAG_DUEL))
|
||||
DuelComplete(DUEL_FLED);
|
||||
}
|
||||
|
||||
//If players are too far way of duel flag... then player loose the duel
|
||||
void Player::CheckDuelDistance(time_t currTime)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1719,7 +1719,6 @@ class MANGOS_DLL_SPEC Player : public Unit
|
|||
DuelInfo *duel;
|
||||
bool IsInDuelWith(Player const* player) const { return duel && duel->opponent == player && duel->startTime != 0; }
|
||||
void UpdateDuelFlag(time_t currTime);
|
||||
void CheckDuelArea(AreaTableEntry const* areaEntry);
|
||||
void CheckDuelDistance(time_t currTime);
|
||||
void DuelComplete(DuelCompleteType type);
|
||||
void SendDuelCountdown(uint32 counter);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11568"
|
||||
#define REVISION_NR "11569"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue