Scripts/Ulduar/XT-002:

- Implement "Nerf Scrapbots" achievement
- Proper target conditions for Boombot Boom
- Pummeler add should walk towards raid on spawn
This commit is contained in:
Machiavelli
2011-06-09 04:43:57 +02:00
parent 14067416b4
commit b42239b237
4 changed files with 75 additions and 36 deletions
+14
View File
@@ -53,6 +53,7 @@
#include "TemporarySummon.h"
#include "Vehicle.h"
#include "Transport.h"
#include "InstanceScript.h"
#include <math.h>
@@ -5640,6 +5641,18 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
basepoints0 = CalculatePctN(int32(damage), triggerAmount);
break;
}
case 65032: // Boom aura (321 Boombot)
{
if (pVictim->GetEntry() != 33343) // Scrapbot
return false;
InstanceScript* instance = GetInstanceScript();
if (!instance)
return false;
instance->DoCastSpellOnPlayers(65037); // Achievement criteria marker
break;
}
}
break;
}
@@ -7904,6 +7917,7 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,
break;
}
}
break;
case SPELLFAMILY_PALADIN:
{