Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- #define SPELL_RENEGADE_STRENGTH 91010
- #define SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT 70674
- class Boss_npc : public CreatureScript
- {
- public:
- Boss_npc() : CreatureScript("Immortal_dude") {}
- struct Immortal_dudeAI : public ScriptedAI
- {
- Immortal_dudeAI(Creature * pCreature) : ScriptedAI(pCreature)
- {}
- uint32 FrostTimer;
- void Reset()
- {
- FrostTimer = 10000;
- }
- void UpdateAI(const uint32 diff)
- {
- if(FrostTimer <= diff)
- {
- DoCast(me, SPELL_RENEGADE_STRENGTH, true);
- DoCast(me, SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT, true);
- // FrostTimer = 10000; // Want to repeat?
- }
- else
- FrostTimer -= diff;
- DoMeleeAttackIfReady();
- }
- void OnEnterCombat(Unit* who)
- {
- me->MonsterSay("Die Mortals!", LANG_UNIVERSAL, me->GetGUID());
- }
- void OnKilledTarget(Unit* who)
- {
- DoCast(me, SPELL_RENEGADE_STRENGTH, true);
- DoCast(me, SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT, true);
- }
- void OnDied(Unit* Killer)
- {
- me->MonsterSay("I will return...", LANG_UNIVERSAL, me->GetGUID());
- }
- };
- };
- void AddSC_Boss_npc()
- {
- new Boss_npc;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement