actionattachontrap.c 275 B

123456789101112
  1. class ActionAttachOnTrap: ActionAttach
  2. {
  3. override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
  4. {
  5. if (target && !target.GetObject().IsInherited(TrapBase))
  6. {
  7. return false;
  8. }
  9. return super.ActionCondition(player, target, item);
  10. }
  11. }