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 unit32 diff)
- {
- if(frosttimer = diff)
- )
- Docastme, SPELL_RENEGADE STRENGTH, true);
- Docastme, SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT 70674, true);
- // FrostTimer = 10000; //
- }
- 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 npc_boss;
- }
Add Comment
Please, Sign In to add comment