source: lost-haven/main/Disable.java@ 8edd04e

Last change on this file since 8edd04e was 8edd04e, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 4 years ago

Make the decompiled game code compile successfully

  • Property mode set to 100644
File size: 521 bytes
RevLine 
[8edd04e]1package main;
2
3public class Disable extends TimedEffect {
4
5 public Disable(TargetType target, long duration) {
6 super(EffectType.Disable, target, duration);
7 }
8
9 public Disable(Disable e) {
10 super(e);
11 }
12
13 public Disable copy() {
14 return new Disable(this);
15 }
16
17 public void applyEffect(Object o) {
18 Creature cr = (Creature)o;
19 cr.disable();
20 cr.addEffect(this);
21 cr.passive++;
22 }
23
24 public void cancelEffect(Object o) {
25 Creature cr = (Creature)o;
26 cr.enable();
27 cr.passive--;
28 }
29}
Note: See TracBrowser for help on using the repository browser.