ForbodingAngel

Untitled

Mar 8th, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function gadget:UnitPreDamaged(unitID, unitDefID, unitTeam, damage, paralyzer,
  2. weaponID, attackerID, attackerDefID, attackerTeam)
  3. if (attackerDefID and
  4. UnitDefs[attackerDefID].customParams and
  5. UnitDefs[attackerDefID].customParams.nofriendlyfire and
  6. attackerID ~= unitID and
  7. spAreTeamsAllied(unitTeam, attackerTeam)) then
  8. return 0
  9. end
  10. return damage
  11. end
Advertisement
Add Comment
Please, Sign In to add comment