protected virtual void OnTargetTrigger(Bio target, int triggerIndex) { if (!this._triggerCountMap.ContainsKey(target)) { this._triggerCountMap[target] = 0; } if (this._triggerCountMap[target] >= this._buff.perTargetTriggerCount) { return; } SyncEventHelper.TriggerTarget(this._buff.rid, target.rid, triggerIndex); this._triggerCountMap[target]++; ++this._totalTriggerCount; this.CalcDamage(this._buff.caster, target, triggerIndex); if (this._buff.triggerStates != null) { this.CreateStates(this._buff.triggerStates, target); } }