Advertisement
Drakten

Untitled

Jun 7th, 2020
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. class X2Effect_HiltImpaired extends X2Effect_Persistent;
  2.  
  3. var int Bonus;
  4.  
  5. function int GetAttackingDamageModifier(XComGameState_Effect EffectState, XComGameState_Unit Attacker, Damageable TargetDamageable, XComGameState_Ability AbilityState, const out EffectAppliedData AppliedData, const int CurrentDamage, optional XComGameState NewGameState)
  6. {
  7. local XComGameState_Unit TargetUnit;
  8.  
  9. TargetUnit = XComGameState_Unit(TargetDamageable);
  10.  
  11. if (
  12. AbilityState.IsMeleeAbility() &&
  13. TargetUnit != none &&
  14. AbilityState.SourceWeapon != EffectState.ApplyEffectParameters.ItemStateObjectRef && ( TargetUnit.IsUnitAffectedByEffectName('Confused') || TargetUnit.IsUnitAffectedByEffectName('Disoriented') || TargetUnit.IsUnitAffectedByEffectName('Stunned') || TargetUnit.IsUnitAffectedByEffectName('RoboticStunned') || TargetUnit.IsUnitAffectedByEffectName('Bound') || TargetUnit.IsUnitAffectedByEffectName('Freeze') || TargetUnit.IsUnitAffectedByEffectName('Dazed') || TargetUnit.IsUnitAffectedByEffectName('Shattered') || TargetUnit.IsUnitAffectedByEffectName('Berserk') || TargetUnit.IsUnitAffectedByEffectName('BleedingOut') || TargetUnit.IsUnitAffectedByEffectName('Burning') || TargetUnit.IsUnitAffectedByEffectName('Acid') || TargetUnit.IsUnitAffectedByEffectName('Poisoned') || TargetUnit.IsUnitAffectedByEffectName('Unconscious') || TargetUnit.IsUnitAffectedByEffectName('Bleeding') || TargetUnit.IsUnitAffectedByEffectName('Obsessed') || TargetUnit.IsUnitAffectedByEffectName('Panicked' ) )
  15. )
  16. {
  17. return Bonus;
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement