mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 17:39:09 +00:00
Tweak automation
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user