pull_player_damage_inflicted: Pull Player Damage Inflicted

View source: R/pull_player_damage_inflicted.R

pull_player_damage_inflictedR Documentation

Pull Player Damage Inflicted

Description

Pull the amount of damage inflicted by player by source (abilities, items, and auto-attacks) to all enemy heroes. This will not include damage done to NPCs. With 'by_hero_recipient' set to FALSE (the default), this will return the sum of damage done (by player by source) to all enemy heroes. Setting 'by_hero_recipient' to TRUE will break out damage done by each source to each enemy hero.

Usage

pull_player_damage_inflicted(obj, by_hero_recipient = FALSE)

Arguments

obj

A 'parsed_match' object

by_hero_recipient

logical. If FALSE (the default), return the sum of damage by ability to all enemy heroes. If TRUE, return damage done by ability to each enemy hero.

Value

A tibble, including identifiers and the amount of damage done by each source

Examples

## Not run: 
#note that this requires a parsed match
a <- get_match('6183712050')
b <- pull_player_damage_inflicted(a)

#if you want damage done to each enemy hero by ability, set 'by_hero_recipient' to TRUE:
x <- pull_player_damage_inflicted(a, by_hero_recipient = TRUE)

## End(Not run)

ekholme/rdota documentation built on March 19, 2022, 1:56 p.m.