im currently making an ability (cleave) where i want it to target one unit, and also damage up to 2 additional units (if there), which have to be within melee range of the caster, and within 60* of the target, relative to the angle of the line between the caster and target. could someone make me an example? mostly just need the angles and math, but the rest of the spell would be great to have for a reference.
BTW, heres the spell
cleave : strikes one target for X damage, and u to 2 nearby enemies in front and in melee range of the caster for 1/2 of the damage to the main target, if they are there. if one or both the additional targets are not there, the remaining target(s) take 1/2 of the missing targets damage distributed between them.
BTW, heres the spell
cleave : strikes one target for X damage, and u to 2 nearby enemies in front and in melee range of the caster for 1/2 of the damage to the main target, if they are there. if one or both the additional targets are not there, the remaining target(s) take 1/2 of the missing targets damage distributed between them.