Scripts/Ulduar/XT-002:
- Fix Boombot's explosion visual and damage (workarounds are torroughly explained in code) - Proper scrapbot vehicle enter handling. (Missing data on how much HP they should restore on the boss, however)
This commit is contained in:
@@ -5825,6 +5825,22 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
triggered_spell_id = 64413;
|
||||
break;
|
||||
}
|
||||
case 47020: // Enter vehicle XT-002 (Scrapbot)
|
||||
{
|
||||
if (GetTypeId() != TYPEID_UNIT)
|
||||
return false;
|
||||
|
||||
Unit* vehicleBase = GetVehicleBase();
|
||||
if (!vehicleBase)
|
||||
return false;
|
||||
|
||||
// Todo: Check if this amount is blizzlike
|
||||
vehicleBase->ModifyHealth(int32(vehicleBase->CountPctFromMaxHealth(1)));
|
||||
|
||||
// Despawns the scrapbot
|
||||
ToCreature()->DespawnOrUnsummon();
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user