diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2017-11-03 11:28:06 +0000 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2017-11-18 12:49:33 +0100 |
| commit | 1e288af8978df2f4b4021f1abbc1a594f335c0bf (patch) | |
| tree | a191acd7c51c3151b9eb1257876a2664b7b31308 /src/game/Scripting/ScriptMgr.cpp | |
| parent | 563e02370ea81f1a6baf2dab701e0c30d4dff112 (diff) | |
Improved OnCriteriaCheck hook, passing information about criteria_id
OnCheck without criteria_id is deprecated but still available
Diffstat (limited to 'src/game/Scripting/ScriptMgr.cpp')
| -rw-r--r-- | src/game/Scripting/ScriptMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Scripting/ScriptMgr.cpp b/src/game/Scripting/ScriptMgr.cpp index 876c63e4c5..55d4e65395 100644 --- a/src/game/Scripting/ScriptMgr.cpp +++ b/src/game/Scripting/ScriptMgr.cpp @@ -1148,13 +1148,13 @@ void ScriptMgr::OnShutdown() FOREACH_SCRIPT(WorldScript)->OnShutdown(); } -bool ScriptMgr::OnCriteriaCheck(uint32 scriptId, Player* source, Unit* target) +bool ScriptMgr::OnCriteriaCheck(uint32 scriptId, Player* source, Unit* target, uint32 criteria_id) { ASSERT(source); // target can be NULL. GET_SCRIPT_RET(AchievementCriteriaScript, scriptId, tmpscript, false); - return tmpscript->OnCheck(source, target); + return tmpscript->OnCheck(source, target, criteria_id); } // Player |
