Skip to content

Rename the isDefender parameter of getDamageReduction to isAttacker #1882

Open
@Brilliand

Description

@Brilliand

It's a small thing, but the isDefender parameter of getDamageReduction actually works like the isAttacker parameter of getDeffensiveBonus: it's true for the player who started the attack (and is receiving the counterattack), and false for the player who got attacked (and so will be performing the counterattack, if any). Renaming that parameter in co.js will ease a bit of confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions