Do not give leader back

This commit is contained in:
郑佩茹
2022-09-22 17:25:47 -06:00
parent 88d81c7a31
commit 8523079c35
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ void WorldPacketHandlerStrategy::InitTriggers(std::vector<TriggerNode*>& trigger
triggers.push_back(new TriggerNode("group invite", NextAction::array(0, new NextAction("accept invitation", relevance), nullptr)));
triggers.push_back(new TriggerNode("uninvite", NextAction::array(0, new NextAction("uninvite", relevance), nullptr)));
triggers.push_back(new TriggerNode("uninvite guid", NextAction::array(0, new NextAction("uninvite", relevance), nullptr)));
triggers.push_back(new TriggerNode("group set leader", NextAction::array(0, new NextAction("leader", relevance), nullptr)));
triggers.push_back(new TriggerNode("group set leader", NextAction::array(0, /*new NextAction("leader", relevance),*/ nullptr)));
triggers.push_back(new TriggerNode("not enough money", NextAction::array(0, new NextAction("tell not enough money", relevance), nullptr)));
triggers.push_back(new TriggerNode("not enough reputation", NextAction::array(0, new NextAction("tell not enough reputation", relevance), nullptr)));
triggers.push_back(new TriggerNode("cannot equip", NextAction::array(0, new NextAction("tell cannot equip", relevance), nullptr)));

View File

@@ -98,7 +98,7 @@ Unit* PartyMemberToHeal::Calculate()
bool PartyMemberToHeal::Check(Unit* player)
{
return player && player != bot && player->GetMapId() == bot->GetMapId() &&
return player && player != bot && player->GetMapId() == bot->GetMapId() && player->IsInWorld() &&
sServerFacade->GetDistance2d(bot, player) < (player->IsPlayer() && botAI->IsTank((Player*)player) ? 50.0f : 40.0f);
}