mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 21:40:27 -07:00
fix graphical prayer bug
This commit is contained in:
parent
55dbedb1ba
commit
d9fbb49e51
1 changed files with 3 additions and 3 deletions
|
|
@ -118,6 +118,9 @@ public final class Prayer {
|
||||||
else prayerActiveTicks = 0;
|
else prayerActiveTicks = 0;
|
||||||
|
|
||||||
if(prayerActiveTicks > 0 && prayerActiveTicks % 2 == 0){
|
if(prayerActiveTicks > 0 && prayerActiveTicks % 2 == 0){
|
||||||
|
if(getPlayer().getSkills().getPrayerPoints() == 0){
|
||||||
|
reset();
|
||||||
|
}
|
||||||
double amountDrain = 0;
|
double amountDrain = 0;
|
||||||
for(PrayerType type : getActive()){
|
for(PrayerType type : getActive()){
|
||||||
double drain = type.getDrain();
|
double drain = type.getDrain();
|
||||||
|
|
@ -131,9 +134,6 @@ public final class Prayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
getPlayer().getSkills().decrementPrayerPoints(amountDrain);
|
getPlayer().getSkills().decrementPrayerPoints(amountDrain);
|
||||||
if(getPlayer().getSkills().getPrayerPoints() == 0){
|
|
||||||
reset();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue