YorickDecayedLogic.cs System.Exception error

Issue found during testing of !42 (merged)

Describe the issue

ERROR ChildrenOfTheGrave.ChildrenOfTheGraveServer.API.ApiEventManager - System.Exception: Exception of type 'System.Exception' was thrown.
   at ChildrenOfTheGrave.ChildrenOfTheGraveServer.Scripting.Lua.Functions.GetBuff(Buff buff) in /root/builds/ZjcfiKYfC/0/IceCreamMan/CoTG/ChildrenOfTheGraveLibrary/Scripting/Lua/Functions.cs:line 72
   at ChildrenOfTheGrave.ChildrenOfTheGraveServer.Scripting.Lua.Functions.SetBuffCasterUnit() in /root/builds/ZjcfiKYfC/0/IceCreamMan/CoTG/ChildrenOfTheGraveLibrary/Scripting/Lua/Functions.cs:line 1073
   at Buffs.YorickDecayedLogic.OnHitUnit(AttackableUnit target, Single& damageAmount, DamageType damageType, DamageSource damageSource, HitResult& hitResult) in /root/builds/ZjcfiKYfC/0/IceCreamMan/CoTG/Content/AvLua-Converted/Characters/Yorick/YorickDecayedLogic.cs:line 75
   at ChildrenOfTheGrave.ChildrenOfTheGraveServer.Scripting.CSharp.Converted.CScript.<Activate>b__19_5(DamageData data) in /root/builds/ZjcfiKYfC/0/IceCreamMan/CoTG/ChildrenOfTheGraveLibrary/Scripting/CSharp/Converted/CScript.cs:line 107
   at ChildrenOfTheGrave.ChildrenOfTheGraveServer.API.ApiEventManager.DataOnlyDispatcher`2.Call(Action`1 callback) in /root/builds/ZjcfiKYfC/0/IceCreamMan/CoTG/ChildrenOfTheGraveLibrary/API/ApiEventManager.cs:line 349
   at ChildrenOfTheGrave.ChildrenOfTheGraveServer.API.ApiEventManager.VariableDispatcherBase`2.Publish(Source source) in /root/builds/ZjcfiKYfC/0/IceCreamMan/CoTG/ChildrenOfTheGraveLibrary/API/ApiEventManager.cs:line 258

A clear and concise description of what the issue is.

Any items used, abilities used within a combo, enemy/allied champions interacted with, etc. Please be as precise as possible with the information given to ensure developers have a clear understanding of the issue.

To Reproduce

Steps to reproduce the behavior:

  1. Create a match and play as Yorick
  2. Put spell points into W
  3. Cast W on an enemy
  4. Observe error in server log