Skip to content

Commit

Permalink
Add OnExplore hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Jan 29, 2024
1 parent 28a091e commit 80b3e1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6460,6 +6460,10 @@ void Player::CheckAreaExploreAndOutdoor()

if (!(currFields & val))
{
#ifdef ELUNA
if (Eluna* e = GetEluna())
e->OnDiscoverArea(this, GetAreaId());
#endif
SetUInt32Value(PLAYER_EXPLORED_ZONES_1 + offset, (uint32)(currFields | val));

UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA, GetAreaId());
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/LuaEngine

0 comments on commit 80b3e1b

Please sign in to comment.