mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[10796] Use regular map case in all trigger checks.
This commit is contained in:
parent
74d178633e
commit
a2909f2674
2 changed files with 3 additions and 3 deletions
|
|
@ -767,7 +767,7 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPacket & recv_data)
|
||||||
if(!mapEntry)
|
if(!mapEntry)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool isRegularTargetMap = GetPlayer()->GetDifficulty(mapEntry->IsRaid()) == REGULAR_DIFFICULTY;
|
bool isRegularTargetMap = !mapEntry->IsDungeon() || GetPlayer()->GetDifficulty(mapEntry->IsRaid()) == REGULAR_DIFFICULTY;
|
||||||
|
|
||||||
if (!isRegularTargetMap)
|
if (!isRegularTargetMap)
|
||||||
{
|
{
|
||||||
|
|
@ -781,7 +781,7 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPacket & recv_data)
|
||||||
missingItem = true;
|
missingItem = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isRegularTargetMap && mapEntry->IsDungeon())
|
if (!isRegularTargetMap)
|
||||||
{
|
{
|
||||||
if (at->requiredQuestHeroic && !GetPlayer()->GetQuestRewardStatus(at->requiredQuestHeroic))
|
if (at->requiredQuestHeroic && !GetPlayer()->GetQuestRewardStatus(at->requiredQuestHeroic))
|
||||||
missingQuest = true;
|
missingQuest = true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10795"
|
#define REVISION_NR "10796"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue