v0.3.0a: fixed wands sometimes not charging

This commit is contained in:
Evan Debenham 2015-05-27 02:15:43 -04:00
parent 418e600482
commit 246c5efa53

View File

@ -117,7 +117,8 @@ public abstract class Wand extends Item {
} }
public void charge( Char owner ) { public void charge( Char owner ) {
if (charger == null) (charger = new Charger()).attachTo( owner ); if (charger == null) charger = new Charger();
charger.attachTo( owner );
} }
public void charge( Char owner, float chargeScaleFactor ){ public void charge( Char owner, float chargeScaleFactor ){