mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9104] Avoid send reset warning to map/difficulty cases without fixed reset time.
This commit is contained in:
parent
aa372cbfda
commit
e8e5bbddea
2 changed files with 11 additions and 5 deletions
|
|
@ -137,13 +137,19 @@ void WorldSession::HandleMoveWorldportAckOpcode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mInstance && mEntry->IsDungeon())
|
if (mInstance)
|
||||||
{
|
{
|
||||||
Difficulty diff = GetPlayer()->GetDifficulty(mEntry->IsRaid());
|
Difficulty diff = GetPlayer()->GetDifficulty(mEntry->IsRaid());
|
||||||
if (uint32 timeReset = sInstanceSaveMgr.GetResetTimeFor(GetPlayer()->GetMapId(),diff))
|
if(MapDifficulty const* mapDiff = GetMapDifficultyData(mEntry->MapID,diff))
|
||||||
{
|
{
|
||||||
uint32 timeleft = timeReset - time(NULL);
|
if (mapDiff->resetTime)
|
||||||
GetPlayer()->SendInstanceResetWarning(GetPlayer()->GetMapId(), diff, timeleft);
|
{
|
||||||
|
if (uint32 timeReset = sInstanceSaveMgr.GetResetTimeFor(mEntry->MapID,diff))
|
||||||
|
{
|
||||||
|
uint32 timeleft = timeReset - time(NULL);
|
||||||
|
GetPlayer()->SendInstanceResetWarning(mEntry->MapID, diff, timeleft);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9103"
|
#define REVISION_NR "9104"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue