View Full Version : Mage

12-04-2014, 01:30 AM
Can i make LUA remove a aura after a player has used a spell? such as mages in 4.3.4 pyroblast is spammable

12-04-2014, 02:32 AM
Moved. Ask your Eluna related questions in Eluna -> SUPPORT not in the 'Lua' release section..

Use the player hook "PLAYER_EVENT_ON_SPELL_CAST (https://github.com/ElunaLuaEngine/Eluna/blob/master/HookMgr.h#L104)" and inside of the function you can check the entry of the spell in an if statement so you know which aura to remove after the player casts a spell "if (spell:GetEntry() (https://github.com/ElunaLuaEngine/Eluna/blob/master/LuaFunctions.cpp#L957) == ENTRY) then", then call player":RemoveAura(spellId[, casterGUID]) (https://github.com/ElunaLuaEngine/Eluna/blob/master/LuaFunctions.cpp#L350)".

12-11-2014, 01:53 AM
375 this is what happens

12-11-2014, 01:56 AM
375 this is what happens

Please show your code

01-09-2015, 03:11 PM
Op never replied back, closing.