dvorak321 / gbfr-parser

6 stars 3 forks source link

Disregard Eugen's grenades #8

Closed brunolm closed 8 months ago

brunolm commented 8 months ago

image

        const actor = getActor(data.source);
        const target = getTarget(actor, data.target);

        if (target.character_id === "022a350f") return;

When grenades are on the floor or attached to the enemy and you shoot them they take damage that's added to the total.

So, damage dealt to the grenades itself needs to be disregarded.

https://github.com/nyaoouo/GBFR-ACT/blob/master/act_ws.html#L840