Jump to content
  • 0

provoke skill on guards


Question

Posted

Hello,

Im tryung disable provoke skill on guards.

    <skill id="286" levels="3" name="Provoke">
        <table name="#magicLvl">43 55 60</table>
        <table name="#mpConsume">57 75 89</table>
        <table name="#skillRadius">500 700 900</table>
        <set name="mpConsume" val="#mpConsume"/>
        <set name="power" val="500"/>
        <set name="target" val="TARGET_AURA"/>
        <set name="skillRadius" val="#skillRadius"/>
        <set name="reuseDelay" val="15000"/>
        <set name="hitTime" val="1500"/>
        <set name="skillType" val="AGGDAMAGE"/>
        <set name="operateType" val="OP_ACTIVE"/>
        <set name="castRange" val="-1"/>
        <set name="effectRange" val="-1"/>
    </skill>
				case AGGDAMAGE:
				{
				if (target instanceof L2GuardInstance) break; // im added this if target is guard code stop at this line
					
				if (target instanceof L2Attackable)
				target.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, activeChar, (int) ((150 * skill.getPower()) / (target.getLevel() + 7)));
				skill.getEffects(activeChar, target, ss, sps, bss);	
				break;
				}

But still guards get provoke effect. Where problem?

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

fixed by self.

If anyone need that Provoke and other mass skill not work on guards.

model/L2Skill.java

			case TARGET_AURA:
			{
....
....
....
....
				for (final L2Object obj : activeChar.getKnownList().getKnownCharactersInRadius(radius))
				{
					if (obj == null || !(activeChar instanceof L2PlayableInstance) && !(obj instanceof L2PlayableInstance))
						continue;
+					if(obj instanceof L2GuardInstance) continue;

this for frozen but and for acis it must be almost same.
can be locked.

Edited by wongerlt
Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock