mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[c12625] Do UpdateForQuestWorldObjects in more places.
This commit is contained in:
parent
a498dcaebd
commit
7218cfd16b
2 changed files with 11 additions and 1 deletions
|
|
@ -13986,6 +13986,8 @@ void Player::RewardQuest(Quest const* pQuest, uint32 reward, Object* questGiver,
|
||||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT);
|
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT);
|
||||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST, pQuest->GetQuestId());
|
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST, pQuest->GetQuestId());
|
||||||
|
|
||||||
|
UpdateForQuestWorldObjects();
|
||||||
|
|
||||||
// remove auras from spells with quest reward state limitations
|
// remove auras from spells with quest reward state limitations
|
||||||
// Some spells applied at quest reward
|
// Some spells applied at quest reward
|
||||||
uint32 zone, area;
|
uint32 zone, area;
|
||||||
|
|
@ -14654,6 +14656,8 @@ void Player::CurrencyAddedQuestCheck(uint32 entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateForQuestWorldObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::CurrencyRemovedQuestCheck(uint32 entry)
|
void Player::CurrencyRemovedQuestCheck(uint32 entry)
|
||||||
|
|
@ -14677,6 +14681,8 @@ void Player::CurrencyRemovedQuestCheck(uint32 entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateForQuestWorldObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::ItemAddedQuestCheck(uint32 entry, uint32 count)
|
void Player::ItemAddedQuestCheck(uint32 entry, uint32 count)
|
||||||
|
|
@ -14787,6 +14793,8 @@ void Player::SpellAddedQuestCheck(uint32 entry)
|
||||||
CompleteQuest(questid);
|
CompleteQuest(questid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateForQuestWorldObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::SpellRemovedQuestCheck(uint32 entry)
|
void Player::SpellRemovedQuestCheck(uint32 entry)
|
||||||
|
|
@ -14810,6 +14818,8 @@ void Player::SpellRemovedQuestCheck(uint32 entry)
|
||||||
IncompleteQuest(questid);
|
IncompleteQuest(questid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateForQuestWorldObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::KilledMonster(CreatureInfo const* cInfo, ObjectGuid guid)
|
void Player::KilledMonster(CreatureInfo const* cInfo, ObjectGuid guid)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12624"
|
#define REVISION_NR "12625"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue