2024-11-6 correct problems

This commit is contained in:
姜耀
2024-11-06 23:05:32 +08:00
parent cb281c7ebd
commit 7af720f127
5 changed files with 23 additions and 75 deletions

View File

@@ -6,11 +6,10 @@
bool MoveFromBronjahmTrigger::IsActive()
{
Unit* boss = AI_VALUE2(Unit*, "find target", "bronjahm");
if (boss && boss->HasUnitState(UNIT_STATE_CASTING))
{
if (boss->FindCurrentSpellBySpellId(SPELL_CORRUPT_SOUL) && bot->HasAura(SPELL_CORRUPT_SOUL))
return true;
}
if (boss->FindCurrentSpellBySpellId(SPELL_CORRUPT_SOUL) && bot->HasAura(SPELL_CORRUPT_SOUL))
return true;
return false;
}
@@ -36,9 +35,5 @@ bool SwitchToSoulFragment::IsActive()
bool BronjahmPositionTrigger::IsActive()
{
Unit* boss = AI_VALUE2(Unit*, "find target", "bronjahm");
if (boss)
return true;
return false;
return bool(AI_VALUE2(Unit*, "find target", "bronjahm"));
}