Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Fightclass cleanse

Featured Replies

Hi!
I've created a fightclass for my paladin while leveling, I want him to cleanse nasty debuffs... (the one I am trying to cleanse now is Toxic Saliva, spell ID 7125

 

he doesn't do nothing about it when I have

Return value research: 1

Return value var: result

but if I delete both those lines he just spams cleanse (it works but that's just cuz I've got it in the last spots in my priority list) 

my question is, what have I done wrong? :(
 

prot pala TBC dubbel wisdom.xml

UnitBuff looks like this in TBC

local name, rank, iconTexture, count, duration, timeLeft =  UnitBuff(unit, buffIndex[, castable]);

UnitDebuff looked like this:

local name, rank, iconTexture, count, debuffType, duration, timeLeft  =  UnitDebuff(unitID, debuffIndex [, removable]);
local buffNames = {
	["Toxic Saliva"] = true,
};

for i=1,40 do 
	local name, rank, iconTexture, count, debuffType, duration, timeLeft = UnitDebuff("player", i)
	if (buffNames[name]) then
		result=1
		return;
	end
end

 

  • Author
2 hours ago, Schaka said:

UnitBuff looks like this in TBC


local name, rank, iconTexture, count, duration, timeLeft =  UnitBuff(unit, buffIndex[, castable]);

UnitDebuff looked like this:


local name, rank, iconTexture, count, debuffType, duration, timeLeft  =  UnitDebuff(unitID, debuffIndex [, removable]);

local buffNames = {
	["Toxic Saliva"] = true,
};

for i=1,40 do 
	local name, rank, iconTexture, count, debuffType, duration, timeLeft = UnitDebuff("player", i)
	if (buffNames[name]) then
		result=1
		return;
	end
end

 

you sir is a god among men.

worked perfect, so if I want more debuffs cleansed, do I have to do a new cleanse for every debuff? or could I add so it cleanses all poison/disease/magic?

  • Author
1 minute ago, Schaka said:

You just add the debuffname, like such:


local buffNames = {
	["Toxic Saliva"] = true,
  	["Shadow Word: Pain"] = true,
};

 

will be a long list... would it be able to do it with debuffType? 

If you changed the code to not check for name but debuffType, sure.
But your table has to contain the debuffTypes then. 

You can use the History function on WoWWiki to read the old TBC API.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.