KOCounter multiply the value by 2

02/04/2013 21:15 Mr_PoP#1
KOCounter multiply the value by 2 , I have no clue what am doing wrong here

Code:
public void KOCounter(IBattleEntity target) {
            MagicAttackPacket m = new MagicAttackPacket(hero.IndexId);
            TargetPacket attack = new TargetPacket(m.Buffer);
            attack.TargetId = target.IndexId;
            attack.X = target.Location.X;
            attack.Y = target.Location.Y;
            attack.KOCount = hero.KOCounter;
            attack.TargetType = TargetType.Kill;
            Sender(attack);
}
and here is a hex dump
Code:
28 00 FE 03 25 28 84 02 43 42 0F 00 2F 61 06 00 BD 01 D0 01 0E 00 00 00 00 00 01
 00 00 00 00 00 00 00 00 00 00 00 00 00

28 00 FE 03 B2 AE 84 02 43 42 0F 00 88 1A 06 00 BE 01 CF 01 0E 00 00 00 00 00 02
 00 00 00 00 00 00 00 00 00 00 00 00 00
am sending the right counter in the right offset , yet the client show counter *2 !! why is that?!
02/05/2013 09:31 -impulse-#2
1) did you think that you might do ++ twice?
2) if that doesnt work you can always do >> 1