Jump to content

Recommended Posts

Heyya anyone knows if there is a method that can retrieve player debuff type.

 

Basicly instead of :

player.HaveBuff("SomeHarmFulDebuff")

I can retrieve collection of partymember debuffs.

Then iterate the collection and see if debuff type is magic/poison/curse and dispell it with some spell like "Natures's Cure"

 

Else I'll have to use a list of all harmfull spells(gonna be a long one i guess...)

Link to comment
https://wrobot.eu/forums/topic/1601-api-detect-debuff-type/
Share on other sites

Hello,

 

You can use lua for it: http://www.wowwiki.com/API_UnitBuff and http://www.wowwiki.com/API_UnitDebuff

for i=1,40 do
local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("player",i);
  if spellId > 0 then
    print("name="..debuffType) 
  end 
end
Link to comment
https://wrobot.eu/forums/topic/1601-api-detect-debuff-type/#findComment-8175
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...