|
|
|
@ -512,17 +512,10 @@ public class MobAI {
@@ -512,17 +512,10 @@ public class MobAI {
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
int powerToken = 0; |
|
|
|
|
int nukeRoll = ThreadLocalRandom.current().nextInt(1,100); |
|
|
|
|
|
|
|
|
|
if (nukeRoll < 55) { |
|
|
|
|
// Choose a random spell.
|
|
|
|
|
|
|
|
|
|
//use direct damage spell
|
|
|
|
|
powerToken = powerEntries.get(powerEntries.size() - 1).token; |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
//use random spell
|
|
|
|
|
powerToken = powerEntries.get(ThreadLocalRandom.current().nextInt(powerEntries.size())).token; |
|
|
|
|
} |
|
|
|
|
powerToken = powerEntries.get(ThreadLocalRandom.current().nextInt(powerEntries.size())).token; |
|
|
|
|
|
|
|
|
|
int powerRank = 1; |
|
|
|
|
|
|
|
|
|