public static bool Run(ZuluHitscript Hitscript, Mobile Attacker, Mobile Defender, BaseWeapon Weapon, ref int BaseDamage) { bool RunDamage = true; try { Call HitscriptCall = HitscriptCalls[(int)Hitscript]; HitscriptCall(Attacker, Defender, Weapon, ref BaseDamage); } catch { Console.WriteLine("Couldnt run hitscript {0}", Hitscript); } return(RunDamage); }
public static bool Run(ZuluHitscript Hitscript, Mobile Attacker, Mobile Defender, BaseWeapon Weapon, ref int BaseDamage) { bool RunDamage = true; try { Call HitscriptCall = HitscriptCalls[(int)Hitscript]; HitscriptCall(Attacker, Defender, Weapon, ref BaseDamage); } catch { Console.WriteLine("Couldnt run hitscript {0}", Hitscript); } return RunDamage; }