mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 10:20:27 +00:00
Calculation of the power of items with random properties (#1312)
* Score calculation of item random property * Equip auto repair on repop * Item random property calculation * Random Property calculation
This commit is contained in:
@@ -43,6 +43,7 @@ bool ReleaseSpiritAction::Execute(Event event)
|
||||
botAI->TellMasterNoFacing(message);
|
||||
|
||||
IncrementDeathCount();
|
||||
bot->DurabilityRepairAll(false, 1.0f, false);
|
||||
LogRelease("released");
|
||||
|
||||
WorldPacket releasePacket(CMSG_REPOP_REQUEST);
|
||||
@@ -79,6 +80,7 @@ void ReleaseSpiritAction::LogRelease(const std::string& releaseMsg, bool isAutoR
|
||||
bool AutoReleaseSpiritAction::Execute(Event event)
|
||||
{
|
||||
IncrementDeathCount();
|
||||
bot->DurabilityRepairAll(false, 1.0f, false);
|
||||
LogRelease("auto released", true);
|
||||
|
||||
WorldPacket packet(CMSG_REPOP_REQUEST);
|
||||
|
||||
Reference in New Issue
Block a user