mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Fixed potential endless quest loop with EVENT_COMBAT and WipeHateList().
This commit is contained in:
parent
8866b3170e
commit
bb541eeb60
@ -5,6 +5,7 @@ demonstar55: Implemented ability for a merchant to open and close shop.
|
||||
Lua quest functions: e.self:MerchantOpenShop() and e.self:MerchantCloseShop()
|
||||
GM Commands: #merchant_open_shop (short: #open_shop) and #merchant_close_shop (short: #close_shop)
|
||||
default to status 100, just in case you need to force the merchants status
|
||||
Trevius: Fixed potential endless quest loop with EVENT_COMBAT and WipeHateList().
|
||||
|
||||
== 03/31/2014 ==
|
||||
Uleat: Fix for unconscious skillups.
|
||||
|
||||
@ -2450,13 +2450,18 @@ bool Mob::RemoveFromHateList(Mob* mob)
|
||||
|
||||
return bFound;
|
||||
}
|
||||
|
||||
void Mob::WipeHateList()
|
||||
{
|
||||
if(IsEngaged())
|
||||
{
|
||||
hate_list.Wipe();
|
||||
AI_Event_NoLongerEngaged();
|
||||
}
|
||||
hate_list.Wipe();
|
||||
else
|
||||
{
|
||||
hate_list.Wipe();
|
||||
}
|
||||
}
|
||||
|
||||
uint32 Mob::RandomTimer(int min,int max) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user