private double GetBonusDmg(Obj_AI_Base Target) { double DmgItem = 0; if (Sheen.IsOwned() && ((Sheen.IsReady() && Q.IsReady()) || Player.HasBuff("Sheen")) && Player.BaseAttackDamage > DmgItem) { DmgItem = Player.BaseAttackDamage; } if (Iceborn.IsOwned() && ((Iceborn.IsReady() && Q.IsReady()) || Player.HasBuff("ItemFrozenFist")) && Player.BaseAttackDamage * 1.25 > DmgItem) { DmgItem = Player.BaseAttackDamage * 1.25; } if (Trinity.IsOwned() && ((Trinity.IsReady() && Q.IsReady()) || Player.HasBuff("Sheen")) && Player.BaseAttackDamage * 2 > DmgItem) { DmgItem = Player.BaseAttackDamage * 2; } return((Q.IsReady() ? Q.GetDamage(Target) : 0) + Player.GetAutoAttackDamage(Target, Q.IsReady() ? false : true) + Player.CalcDamage(Target, Damage.DamageType.Physical, DmgItem)); }
private static double GetBonusDmg(Obj_AI_Base target) { var dmgItem = 0d; if (Sheen.IsOwned() && (Sheen.IsReady() || Player.HasBuff("Sheen"))) { dmgItem = Player.BaseAttackDamage; } if (Iceborn.IsOwned() && (Iceborn.IsReady() || Player.HasBuff("ItemFrozenFist"))) { dmgItem = Player.BaseAttackDamage * 1.25; } if (Trinity.IsOwned() && (Trinity.IsReady() || Player.HasBuff("Sheen"))) { dmgItem = Player.BaseAttackDamage * 2; } return((Q.IsReady() ? Q.GetDamage(target) : 0) + Player.GetAutoAttackDamage(target, true) + (dmgItem > 0 ? Player.CalcDamage(target, Damage.DamageType.Physical, dmgItem) : 0)); }