Jump to content

Dispel Poison or Curse

Recommended Posts

Hello my Fightclass is in c++ and i wanted to add the following code:

        bool curse = false;
        curse= Lua.LuaDoString<bool>(
                        for i = 1, 25 do
                        local _, _, _, _, d  = UnitDebuff(""player"",i);
                        if d == ""Curse"" then return true; end


Unfortunately "d" is never true. Do you have a solution for that?   

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...