How to check if a skill is a buff?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

How to check if a skill is a buff?

Post by sahar »

Might be a dumb question but i still want to be sure of this, as i saw BUFF_IMMUNITY isnt implemenated, and i want to create an anti buff skill.
So whats the best way to detect if a skill is a buff?
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to check if a skill is a buff?

Post by Sdw »

Let's say skill.hasEffectType(L2EffectType.BUFF)
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: How to check if a skill is a buff?

Post by NosBit »

Sdw wrote:Let's say skill.hasEffectType(L2EffectType.BUFF)
Not really he must check skill.isContinious() && !skill.isDebuff()
Image
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to check if a skill is a buff?

Post by Sdw »

Make a method now
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Re: How to check if a skill is a buff?

Post by sahar »

Just wondering does this include dances/songs? or i need to add a seperate check?
Post Reply