mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue