That raises an interesting point, I could set each unit with a set attack type to a certain integer or variable... that would most certainly work, thx for the tip, Vegil =D
I'm now thinking that if I initialize each units into their suited variables or something of the likes based on what their attack is, I could set each unit to receive certain amounts of damage from the unit themselves and not necessarily their attack type.
The basic idea of the whole thing, btw, was that I wanted to do something like Age of Mythology in terms of each unit is classified with 3 defense types: Hack, Slash and Pierce. Basically, Hacking attacks were your basic Siege attacks, Slash are like normal attacks in Warcraft, and Pierce is like... well, Pierce. So, while 2 units may have the same role, 1 may be slightly better at defending one of their weaknesses than the other unit.
For example:
UNIT 1: Defense: Hack 39%, Slash 24%, Pierce 64%
UNIT 2: Defense: Hack 39%, Slash 30%, Pierce 60%
So, while unit 1 is weaker to the Slash attack type than unit 2, it is also slightly better at defending against Pierce attacks. This system would allow for each unit to be more precise at taking damage against certain attack types.