Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class spell_warl_soul_swap_override : public SpellScriptLoader
- {
- public:
- spell_warl_soul_swap_override() : SpellScriptLoader("spell_warl_soul_swap_override") { }
- class spell_warl_soul_swap_override_AuraScript : public AuraScript
- {
- PrepareAuraScript(spell_warl_soul_swap_override_AuraScript);
- bool Load() override
- {
- _swapCaster = NULL;
- return true;
- }
- //! Forced to, pure virtual functions must have a body when linking
- void Register() override { }
- public:
- void AddDot(uint32 id) { _dotList.push_back(id); }
- std::list<uint32> const GetDotList() const { return _dotList; }
- Unit* GetOriginalSwapSource() const { return _swapCaster; }
- void SetOriginalSwapSource(Unit* victim) { _swapCaster = victim; }
- private:
- std::list<uint32> _dotList;
- Unit* _swapCaster;
- };
- AuraScript* GetAuraScript() const override
- {
- return new spell_warl_soul_swap_override_AuraScript();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement