/// <summary> /// Called when spell cast from <see cref="Obj_AI_Base"/>. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="GameObjectProcessSpellCastEventArgs"/> instance containing the event data.</param> private void Obj_AI_Base_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (!sender.IsMe) { return; } var spellName = args.SData.Name; if (spellName.ToLower().Contains("gangplanke")) { _lastPowderKegTracker = new LastPowderKegTracker { Position = args.End, TickCount = Environment.TickCount }; } }