L2JMobius

The Kamael Vampiric Attack handler implement

champzix1 · 4 · 5569

Offline champzix1

  • Baron
  • *****
    • Posts: 232
All of Vampiric Attack effects should apply only for melee, I'm sure of it.

Code: [Select]
diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/VampiricAttack.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/VampiricAttack.java
index 1c85196..5441cee 100644
--- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/VampiricAttack.java
+++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/VampiricAttack.java
@@ -39,7 +39,10 @@
  @Override
  public void pump(Creature effected, Skill skill)
  {
- effected.getStat().mergeAdd(Stat.ABSORB_DAMAGE_PERCENT, _amount / 100);
- effected.getStat().addToVampiricSum(_sum);
+ if (!effected.getAttackType().isRanged())
+ {
+ effected.getStat().mergeAdd(Stat.ABSORB_DAMAGE_PERCENT, _amount / 100);
+ effected.getStat().addToVampiricSum(_sum);
+ }
  }
 }



Online Mobius

  • Distinguished King
  • *****
    • Posts: 16011
What if they have equiped Zaken +2 ?

Also on Homunculus I have been told that they do.


Offline champzix1

  • Baron
  • *****
    • Posts: 232
What is a Zaken +2 ?
Is it a weapon? I could't find information about it.
Sorry, I'm out dated about the game.

Can we apply this only for The Kamael chronicle and older?


Offline uchihasv

  • Knight
  • ***
    • Posts: 54
In classic kamael vamp effect added for range and mage(skills), but need fix trigger chances of some vamp skills

Test of vamp effect activate chance rates:
https://4gameforum.com/threads/699580/
https://4gameforum.com/threads/775673/

Proof video with mage farm under vamp buff(and author confirmed it in 5:50):