mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/ConditionMgr: added placeholder for CONDITION_GUID
renamed targetOverride to invoker removed targetOverride code (had no use) --HG-- branch : trunk
This commit is contained in:
@@ -930,14 +930,14 @@ void ScriptMgr::OnAuctionExpire(AuctionHouseObject* ah, AuctionEntry* entry)
|
||||
FOREACH_SCRIPT(AuctionHouseScript)->OnAuctionExpire(ah, entry);
|
||||
}
|
||||
|
||||
bool ScriptMgr::OnConditionCheck(Condition* condition, Player* player, Unit* targetOverride)
|
||||
bool ScriptMgr::OnConditionCheck(Condition* condition, Player* player, Unit* invoker)
|
||||
{
|
||||
ASSERT(condition);
|
||||
ASSERT(player);
|
||||
// targetOverride can be NULL.
|
||||
// invoker can be NULL.
|
||||
|
||||
GET_SCRIPT_RET(ConditionScript, condition->mScriptId, tmpscript, true);
|
||||
return tmpscript->OnConditionCheck(condition, player, targetOverride);
|
||||
return tmpscript->OnConditionCheck(condition, player, invoker);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnInstall(Vehicle* veh)
|
||||
|
||||
Reference in New Issue
Block a user