Core: hooks the bot module uses
This commit is contained in:
@@ -2237,6 +2237,24 @@ void ScriptMgr::OnPlayerLfgJoin(Player* player, uint32 dungeonId, uint8 roles)
|
||||
FOREACH_SCRIPT(PlayerScript)->OnLfgJoin(player, dungeonId, roles);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerGroupFinderListing(Player* player, uint32 categoryId, std::vector<uint32> const& activities, bool listed)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnGroupFinderListing(player, categoryId, activities, listed);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerGroupFinderSearch(Player* searcher)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnGroupFinderSearch(searcher);
|
||||
}
|
||||
|
||||
bool ScriptMgr::OnPlayerGroupFinderJoinRequest(Player* member, Player* applicant)
|
||||
{
|
||||
FOR_SCRIPTS_RET(PlayerScript, itr, end, false)
|
||||
if (itr->second->OnGroupFinderJoinRequest(member, applicant))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerLfgProposal(Player* player, uint32 proposalId)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnLfgProposal(player, proposalId);
|
||||
@@ -2382,11 +2400,21 @@ void ScriptMgr::OnHeal(Unit* healer, Unit* reciever, uint32& gain)
|
||||
FOREACH_SCRIPT(UnitScript)->OnHeal(healer, reciever, gain);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnHealOutcome(Unit* healer, Unit* target, uint32 spellId, uint32 raw, uint32 effective)
|
||||
{
|
||||
FOREACH_SCRIPT(UnitScript)->OnHealOutcome(healer, target, spellId, raw, effective);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnDamageSpell(Unit* attacker, Unit* victim, uint32 damage, SpellInfo const* spellInfo)
|
||||
{
|
||||
FOREACH_SCRIPT(UnitScript)->OnDamageSpell(attacker, victim, damage, spellInfo);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnHitOutcome(Unit* attacker, Unit* victim, uint32 spellId, uint8 outcome, uint32 damage)
|
||||
{
|
||||
FOREACH_SCRIPT(UnitScript)->OnHitOutcome(attacker, victim, spellId, outcome, damage);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnDamage(Unit* attacker, Unit* victim, uint32& damage)
|
||||
{
|
||||
FOREACH_SCRIPT(UnitScript)->OnDamage(attacker, victim, damage);
|
||||
@@ -2769,10 +2797,18 @@ void UnitScript::OnHeal(Unit* /*healer*/, Unit* /*reciever*/, uint32& /*gain*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UnitScript::OnHealOutcome(Unit* /*healer*/, Unit* /*target*/, uint32 /*spellId*/, uint32 /*raw*/, uint32 /*effective*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UnitScript::OnDamageSpell(Unit* /*attacker*/, Unit* /*victim*/, uint32 /*damage*/, SpellInfo const* /*spellInfo*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UnitScript::OnHitOutcome(Unit* /*attacker*/, Unit* /*victim*/, uint32 /*spellId*/, uint8 /*outcome*/, uint32 /*damage*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UnitScript::OnDamage(Unit* /*attacker*/, Unit* /*victim*/, uint32& /*damage*/)
|
||||
{
|
||||
}
|
||||
@@ -3205,6 +3241,19 @@ void PlayerScript::OnLfgJoin(Player* /*player*/, uint32 /*dungeonId*/, uint8 /*r
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnGroupFinderListing(Player* /*player*/, uint32 /*categoryId*/, std::vector<uint32> const& /*activities*/, bool /*listed*/)
|
||||
{
|
||||
}
|
||||
|
||||
bool PlayerScript::OnGroupFinderJoinRequest(Player* /*member*/, Player* /*applicant*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void PlayerScript::OnGroupFinderSearch(Player* /*searcher*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnLfgProposal(Player* /*player*/, uint32 /*proposalId*/)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user