Icecrown gunship strategy

This commit is contained in:
Yunfan Li
2024-09-23 13:58:59 +08:00
parent 2cb6f14dad
commit b87ca9da4c
18 changed files with 344 additions and 39 deletions

View File

@@ -0,0 +1,29 @@
#include "RaidIccTriggers.h"
bool IccInCannonTrigger::IsActive()
{
Unit* vehicleBase = bot->GetVehicleBase();
Vehicle* vehicle = bot->GetVehicle();
if (!vehicleBase || !vehicle)
return false;
uint32 entry = vehicleBase->GetEntry();
return entry == 36838 || entry == 36839;
}
bool IccGunshipCannonNearTrigger::IsActive()
{
if (bot->GetVehicle())
return false;
if (!botAI->IsDps(bot))
return false;
// Player* master = botAI->GetMaster();
// if (!master)
// return false;
// if (!master->GetVehicle())
// return false;
return true;
}