[c12625] Do UpdateForQuestWorldObjects in more places.

This commit is contained in:
Dramacydal 2013-05-31 12:39:17 +01:00 committed by Antz
parent a498dcaebd
commit 7218cfd16b
2 changed files with 11 additions and 1 deletions

View file

@ -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)

View file

@ -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__