updating sample method

This commit is contained in:
2024-03-07 23:22:59 -05:00
parent a8b8ead40a
commit a6ce22b55e
+4 -3
View File
@@ -1,15 +1,16 @@
# Player
All methods that are available to be used can be used on a player object.
## AddComboPoints
If the player is a rogue or druid, this method will add combo points to the player
based on the target and the count of combo points to add.
**Parameters:**
* *enemy:* [Unit](./unit.md) - Unit to apply combo points to
* *count:* number - The number of combo points to apply
* **enemy:** [Unit](./unit.md) - Unit to apply combo points to
* **count:** number - The number of combo points to apply
**Example:**
__Simple script to start a rogue/druid with an advantage.__
_Simple script to start a rogue/druid with an advantage._
```typescript
const onPlayerEnter: player_event_on_enter_combat = (event: number, player: Player, enemy: Unit): void => {