CombatProcEffect ​
Inherits: ProcEffect < CompositeEffect < Effect < DatabaseResource < Resource
Proc effect that responds to the resolved hits of its holder (offensive: hits dealt, defensive: hits received). Reads the typed DamageResult and filters by the trigger tags that fired (e.g. "critical strike", "dodge", "block")
Properties ​
TriggerType | trigger_on | TriggerType.OFFENSIVE_PROC |
String | required_trigger_tag | "" |
bool | apply_to_attack_target | false |
Methods ​
String | get_effect_description() |
String | get_editor_description() |
Enumerations ​
enum TriggerType ​
The options of trigger type: offensive proc, defensive proc.
- OFFENSIVE_PROC =
0- When an offensive trigger happens (Critical Strike, Armor Pen, etc.) - DEFENSIVE_PROC =
1- When a defensive trigger happens (Dodge, Parry, Block, etc.)
Property descriptions ​
Combat Trigger Settings
TriggerType trigger_on = TriggerType.OFFENSIVE_PROC ​
Which type of special effect triggers this proc
String required_trigger_tag = "" ​
Only proc when this specific trigger tag occurs (empty = any trigger)
Target Override
bool apply_to_attack_target = false ​
Apply child effects to the target of the triggering attack instead of the proc holder
Method descriptions ​
String get_effect_description() ​
The text of the effect for tooltips, with its values filled in.
String get_editor_description() ​
A short text for the effect editor that says what the effect does.