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:
kadeshar
2025-08-18 12:02:19 +02:00
committed by GitHub
parent b369b1f9ae
commit 77c2354c3f
17 changed files with 2320 additions and 48 deletions

View File

@@ -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