Tweak automation

This commit is contained in:
郑佩茹
2022-09-22 17:22:19 -06:00
parent 1e490e80e4
commit 88d81c7a31
4 changed files with 31 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ bool GuildManageNearbyAction::Execute(Event event)
Guild::Member* member = guild->GetMember(player->GetGUID());
uint32 dCount = AI_VALUE(uint32, "death count");
if (dCount < 2 || !urand(0, 10))
if ((dCount < 2 || !urand(0, 10)) && guild->GetRankRights(botMember->GetRankId() & GR_RIGHT_PROMOTE))
{
if (!urand(0, 10))
{
@@ -173,7 +173,7 @@ bool GuildManageNearbyAction::Execute(Event event)
}
}
if (dCount > 3 || !urand(0, 10))
if ((dCount > 3 || !urand(0, 10)) && guild->GetRankRights(botMember->GetRankId() & GR_RIGHT_DEMOTE))
{
if (!urand(0, 10))
{