mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Fix prioritized targets reset
This commit is contained in:
parent
25c46037cd
commit
1005184adc
@ -682,7 +682,7 @@ void PlayerbotAI::Reset(bool full)
|
|||||||
|
|
||||||
aiObjectContext->GetValue<Unit*>("old target")->Set(nullptr);
|
aiObjectContext->GetValue<Unit*>("old target")->Set(nullptr);
|
||||||
aiObjectContext->GetValue<Unit*>("current target")->Set(nullptr);
|
aiObjectContext->GetValue<Unit*>("current target")->Set(nullptr);
|
||||||
aiObjectContext->GetValue<Unit*>("prioritized targets")->Reset();
|
aiObjectContext->GetValue<GuidVector>("prioritized targets")->Reset();
|
||||||
aiObjectContext->GetValue<ObjectGuid>("pull target")->Set(ObjectGuid::Empty);
|
aiObjectContext->GetValue<ObjectGuid>("pull target")->Set(ObjectGuid::Empty);
|
||||||
aiObjectContext->GetValue<GuidPosition>("rpg target")->Set(GuidPosition());
|
aiObjectContext->GetValue<GuidPosition>("rpg target")->Set(GuidPosition());
|
||||||
aiObjectContext->GetValue<LootObject>("loot target")->Set(LootObject());
|
aiObjectContext->GetValue<LootObject>("loot target")->Set(LootObject());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user