Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class X2Effect_HiltImpaired extends X2Effect_Persistent;
- var int Bonus;
- function int GetAttackingDamageModifier(XComGameState_Effect EffectState, XComGameState_Unit Attacker, Damageable TargetDamageable, XComGameState_Ability AbilityState, const out EffectAppliedData AppliedData, const int CurrentDamage, optional XComGameState NewGameState)
- {
- local XComGameState_Unit TargetUnit;
- TargetUnit = XComGameState_Unit(TargetDamageable);
- if (
- AbilityState.IsMeleeAbility() &&
- TargetUnit != none &&
- 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' ) )
- )
- {
- return Bonus;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement