iquickeater: antifire's will now be consumed just before they are about to expire - needs testing
This commit is contained in:
parent
0da2d9d745
commit
9a8b6e2b54
|
@ -23,7 +23,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
version = "4.2.0"
|
||||
version = "4.3.0"
|
||||
|
||||
project.extra["PluginName"] = "iQuick Eater"
|
||||
project.extra["PluginDescription"] = "Illumine - auto eat food, consume potions and equip items"
|
||||
|
|
|
@ -277,9 +277,10 @@ public class iQuickEaterPlugin extends Plugin
|
|||
private void onChatMessage(ChatMessage event)
|
||||
{
|
||||
String BURN_MESSAGE = ("You're horribly burnt by the dragon fire!");
|
||||
String BURN_EXPIRE = ("antifire potion is about to expire.");
|
||||
String IMB_HEART_MESSAGE = ("Your imbued heart has regained its magical power.");
|
||||
|
||||
if (event.getMessage().equals(BURN_MESSAGE) && config.drinkAntiFire())
|
||||
if (event.getMessage().equals(BURN_MESSAGE) || event.getMessage().contains(BURN_EXPIRE) && config.drinkAntiFire())
|
||||
{
|
||||
if (inventory.containsItem(ANTI_FIRE_SET))
|
||||
{
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue