v3.2.2: fixed throw clubs/hammers rarely setting hero time too far back
This commit is contained in:
@@ -40,7 +40,7 @@ public class ThrowingClub extends MissileWeapon {
|
|||||||
@Override
|
@Override
|
||||||
public boolean doPickUp(Hero hero, int pos) {
|
public boolean doPickUp(Hero hero, int pos) {
|
||||||
if (super.doPickUp(hero, pos)){
|
if (super.doPickUp(hero, pos)){
|
||||||
hero.spendAndNext( -TIME_TO_PICK_UP );
|
hero.spendAndNext( -hero.cooldown() );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public class ThrowingHammer extends MissileWeapon {
|
|||||||
@Override
|
@Override
|
||||||
public boolean doPickUp(Hero hero, int pos) {
|
public boolean doPickUp(Hero hero, int pos) {
|
||||||
if (super.doPickUp(hero, pos)){
|
if (super.doPickUp(hero, pos)){
|
||||||
hero.spendAndNext( -TIME_TO_PICK_UP );
|
hero.spendAndNext( -hero.cooldown() );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user