Hi i recently added claws to my project insanity and each spec is only 2 hits any idea on how to fix this?
i have this in my combatassistant.java
Code:
case 14484: //dragon claws special attack
c.gfx0(1950);
c.startAnimation(10961);
c.specAccuracy = 100.0;
c.clawDamage = 0;
c.specDamage = 0.90;
if (c.playerIndex > 0) {
Client o = (Client) Server.playerHandler.players[c.playerIndex];
if (Misc.random(calculateMeleeAttack()) > Misc.random(o.getCombat().calculateMeleeDefence())) {
c.clawDamage = Misc.random(calculateMeleeMaxHit() + Misc.random(3));//4
}
c.clawIndex = c.playerIndex;
c.clawType = 1;
} else if (c.npcIndex > 0) {
NPC n = Server.npcHandler.npcs[c.npcIndex];
if (Misc.random(calculateMeleeAttack()) > Misc.random(n.defence)) {
c.clawDamage = Misc.random(calculateMeleeMaxHit() + Misc.random(1));//2
}
c.clawIndex = c.npcIndex;
c.clawType = 2;
}
c.doubleHit = true;
c.usingClaws = true;
c.specEffect = 5;
c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquipment[c.playerWeapon]).toLowerCase());
break;
each claw spec hits twice