I am having some problems using #contains in a magic script, this is my code:
private boolean hasRunes() {
return getInventory().contains("Fire rune") && getInventory().contains("Air rune") && getInventory().contains("Mind rune");
}
What happens is at first it will return true if i have all runes but after casting a spell, it would ALWAYS return false, is it a problem in my code, if so how can i fix it? any suggestions?
Thanks