mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
[Crash fix] Party buff check
This commit is contained in:
parent
54a844585f
commit
b2e6b383f1
@ -33,6 +33,10 @@ bool DivineSpiritTrigger::IsActive()
|
||||
|
||||
bool PrayerOfFortitudeTrigger::IsActive()
|
||||
{
|
||||
Unit* target = GetTarget();
|
||||
if (!target || !target->IsPlayer())
|
||||
return false;
|
||||
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("prayer of fortitude", GetTarget()) &&
|
||||
botAI->GetBot()->IsInSameGroupWith((Player*)GetTarget()) &&
|
||||
botAI->GetBuffedCount((Player*)GetTarget(), "prayer of fortitude") < 4 &&
|
||||
@ -41,6 +45,10 @@ bool PrayerOfFortitudeTrigger::IsActive()
|
||||
|
||||
bool PrayerOfSpiritTrigger::IsActive()
|
||||
{
|
||||
Unit* target = GetTarget();
|
||||
if (!target || !target->IsPlayer())
|
||||
return false;
|
||||
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("prayer of spirit", GetTarget()) &&
|
||||
botAI->GetBot()->IsInSameGroupWith((Player*)GetTarget()) &&
|
||||
// botAI->GetManaPercent() > 50 &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user