public ActiveCombo(ComboDefense c) { Combo = c; PositionInSequence = 0; }
// // carry out the combo defenses // // If you add a new combo, you must add the code here to define what it actually does when it is activated // public void DoComboDefense(Mobile attacker, Mobile defender, BaseWeapon weapon, int damageGiven, ComboDefense combo) { if (attacker == null || defender == null || weapon == null || combo == null) { return; } defender.SendMessage("You unleash the combo defense {0}!", combo.Name); // apply the combo defense switch (combo.DefenseID) { case ComboDefenses.ColdWind: { // 5 sec paralyze attacker.FixedEffect(0x376A, 9, 32); attacker.PlaySound(0x204); attacker.Freeze(TimeSpan.FromSeconds(5)); // 7x stam drain attacker.Stam -= weapon.MaxDamage * 7; break; } } }
// // carry out the combo defenses // // If you add a new combo, you must add the code here to define what it actually does when it is activated // public void DoComboDefense(Mobile attacker, Mobile defender, BaseWeapon weapon, int damageGiven, ComboDefense combo) { if(attacker == null || defender == null || weapon == null || combo == null) return; defender.SendMessage("You unleash the combo defense {0}!",combo.Name); // apply the combo defense switch(combo.DefenseID) { case ComboDefenses.ColdWind: { // 5 sec paralyze attacker.FixedEffect( 0x376A, 9, 32 ); attacker.PlaySound( 0x204 ); attacker.Freeze( TimeSpan.FromSeconds(5) ); // 7x stam drain attacker.Stam -= weapon.MaxDamage*7; break; } } }
public ActiveCombo(ComboDefense c) { this.Combo = c; this.PositionInSequence = 0; }