Changed Ignition to add fire ticks rather than replace them. (Thanks

bm01!)
This commit is contained in:
GJ 2012-03-02 10:11:54 -05:00
parent 353ceefd4e
commit c032a27d63
3 changed files with 6 additions and 3 deletions

View File

@ -7,6 +7,9 @@ Key:
! Change ! Change
- Removal - Removal
Version 2.0.00-dev
! Changed Ignition to add fire ticks rather than replacing them.
Version 1.3.01 Version 1.3.01
= Fixed bug where Tree Feller had no cooldown = Fixed bug where Tree Feller had no cooldown
= Fixed bug with activating Skull Splitter after using Tree Feller = Fixed bug with activating Skull Splitter after using Tree Feller

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId> <groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId> <artifactId>mcMMO</artifactId>
<version>1.3.01</version> <version>2.0.00-dev</version>
<name>mcMMO</name> <name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url> <url>https://github.com/mcMMO-Dev/mcMMO</url>
<issueManagement> <issueManagement>

View File

@ -60,14 +60,14 @@ public class Archery
Player defender = (Player)x; Player defender = (Player)x;
if(!Party.getInstance().inSameParty(attacker, defender)) if(!Party.getInstance().inSameParty(attacker, defender))
{ {
defender.setFireTicks(ignition); defender.setFireTicks(defender.getFireTicks() + ignition);
attacker.sendMessage(mcLocale.getString("Combat.Ignition")); //$NON-NLS-1$ attacker.sendMessage(mcLocale.getString("Combat.Ignition")); //$NON-NLS-1$
defender.sendMessage(mcLocale.getString("Combat.BurningArrowHit")); //$NON-NLS-1$ defender.sendMessage(mcLocale.getString("Combat.BurningArrowHit")); //$NON-NLS-1$
} }
} }
else else
{ {
x.setFireTicks(ignition); x.setFireTicks(x.getFireTicks() + ignition);
attacker.sendMessage(mcLocale.getString("Combat.Ignition")); //$NON-NLS-1$ attacker.sendMessage(mcLocale.getString("Combat.Ignition")); //$NON-NLS-1$
} }
} }