This Condition is wrong - or at least an odd way of going about:
-
(Item-type of (Item carried by (Damage source) of type Ultimate Beast Claws)) Equal to Ultimate Beast Claws
There's a Boolean to check to see if a unit has an item by type:
-
((Damage source) has an Item of type Ultimate Beast Claws) Equal to True
This line is unnecessary and should be deleted:
-
Set VariableSet Ultimate_Beast_Claws_UnitGroup_Copy = (Random 0 units from Ultimate_Beast_Claws_UnitGroup)
You don't need to initialize the Unit Group.
This line is unnecessary and should be deleted:
-
Unit Group - Remove Ultimate_Beast_Claws_Unit from Ultimate_Beast_Claws_UnitGroup.
It doesn't really change anything.
This should be reference Ultimate_Beast_Claws_Point2:
-
Set VariableSet Ultimate_Beast_Claws_UnitGroup = (Units within 300.00 of Ultimate_Beast_Claws_Point.)
Currently, you're getting units within a circle radius of 300.00 around the damage source.
All of your Conditions are set to True despite the example having Structure and Flying set to False. This is how the Conditions should look:
-
If - Conditions
-

((Picked unit) is alive) Equal to True
-

((Picked unit) belongs to an enemy of (Owner of Ultimate_Beast_Claws_Unit).) Equal to True
-

((Picked unit) is A structure) Equal to False
-

((Picked unit) is A flying unit) Equal to False
Remember, the Unit Group contains ALL nearby units by default. So what you're doing in these Conditions is trying to filter out unwanted types of units. So you want to set Structure/Flying to
False to prevent those types of units from being damaged.
After you're done looping over Ultimate_Beast_Claws_UnitGroup you should add this Action:
-
Set VariableSet Ultimate_Beast_Claws_UnitGroup_Copy = (Random 3 units from Ultimate_Beast_Claws_UnitGroup)
Then in the second Pick Every Unit action you should change it to say this:
-
Unit Group - Pick every unit in Ultimate_Beast_Claws_UnitGroup_Copy and do (Actions)
Lastly, your Special Effect (which is optional) is not setup correctly:
-
Special Effect - Create a special effect at (Center of (Playable map area)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-
Special Effect - Destroy (Last created special effect)
You're creating a Thunderclap at the center of the map. It seems like you either want to delete these Actions or adjust them.