Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Monster Ward
- // Half damage from monsters
- // Game_Unit_Skills.cs
- if (target != null && !nihil(this))
- if (target.actor.has_skill("MONSTWD") && actor.class_types.Contains(ClassTypes.Monster))
- {
- int total_dmg = (skill_dmg + weapon_dmg + actor_dmg + support_dmg) - target_def;
- target_def += Math.Max(0, (int)Math.Ceiling(dmg / 2f));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement