mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-17 17:14:36 +00:00
Yogg-Saron strategy (#1565)
* - wip * - Added Yogg-Saron strategy * - Added Yogg-Saron sanity strategy * - WIP * - WIP * - WIP * - WIP * - Added Yogg-Saron strategy * - code refactoring * - Code fix after pr
This commit is contained in:
@@ -15,7 +15,7 @@ bool BossFireResistanceTrigger::IsActive()
|
||||
{
|
||||
// Check boss and it is alive
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", bossName);
|
||||
if (!boss || !boss->IsAlive())
|
||||
if (!boss || !boss->IsAlive() || boss->IsFriendlyTo(bot))
|
||||
return false;
|
||||
|
||||
// Check if bot is paladin
|
||||
@@ -68,7 +68,7 @@ bool BossFrostResistanceTrigger::IsActive()
|
||||
{
|
||||
// Check boss and it is alive
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", bossName);
|
||||
if (!boss || !boss->IsAlive())
|
||||
if (!boss || !boss->IsAlive() || boss->IsFriendlyTo(bot))
|
||||
return false;
|
||||
|
||||
// Check if bot is paladin
|
||||
@@ -121,7 +121,7 @@ bool BossNatureResistanceTrigger::IsActive()
|
||||
{
|
||||
// Check boss and it is alive
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", bossName);
|
||||
if (!boss || !boss->IsAlive())
|
||||
if (!boss || !boss->IsAlive() || boss->IsFriendlyTo(bot))
|
||||
return false;
|
||||
|
||||
// Check if bot is alive
|
||||
@@ -176,7 +176,7 @@ bool BossShadowResistanceTrigger::IsActive()
|
||||
{
|
||||
// Check boss and it is alive
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", bossName);
|
||||
if (!boss || !boss->IsAlive())
|
||||
if (!boss || !boss->IsAlive() || boss->IsFriendlyTo(bot))
|
||||
return false;
|
||||
|
||||
// Check if bot is paladin
|
||||
|
||||
Reference in New Issue
Block a user