Skip to content

RangedAttack not always called when damaging Players #158

@YourCoal

Description

@YourCoal

The RangedAttack method for bows is only called when a player is holding a bow and an arrow the player shot hit a player. This actually isn't the best since during WarTime or any PvP a player might need to switch to a sword to defend them-self, so if the arrow hits the player when this happens the damage is set to the default minecraft arrow damage.

(A possible fix is getting the damage when the arrow is fired, then setting the entity's metadata to have that damage, so when a player is hit by an entity and the metadata "damage" != null then they will take damage that way.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions