Hi! Does anyone see a way for me to finish this brawl without subsrcibing? THis is the farthes i’ve gotten.
Code
enemy = hero.findNearestEnemy()
hero.summon("decoy")
hero.summon("decoy")
hero.summon("decoy")
friends = hero.findFriends()
def w(duration):
hero.wait(duration)
w(1)
hero.cast("chain-lightning", enemy)
def consecrate():
hero.consecrate()
while True:
enemy = hero.findNearestEnemy()
hero.buildXY("fire-trap", enemy.pos.x, enemy.pos.y)
enemy = hero.findNearestEnemy()
item = hero.findNearestItem()
if item and item.type == "potion":
item = hero.findNearestItem()
pet.fetch(item)
while hero.gold>= hero.costOf("decoy"):
hero.summon("decoy")
if hero.canCast("chain-lightning", enemy):
enemy = hero.findNearestEnemy()
hero.cast("chain-lightning", enemy)
if hero.canCast("invisibility", hero):
hero.cast("invisibility", hero)
if hero.health < hero.maxHealth/1.25:
consecrate()
enemy = hero.findNearestEnemy()
"""
while True:
enemy = hero.findNearestEnemy()
item = hero.findNearestItem()
if hero.gold>= hero.costOf("soldier"):
hero.summon("soldier")
friends = hero.findFriends()
if item and item.type == "potion":
item = hero.findNearestItem()
pet.fetch(item)
elif hero.health < hero.maxHealth/1.25:
hero.consecrate()
enemy = hero.findNearestEnemy()
elif hero.isReady("flash"):
hero.flash()
if hero.canCast("chain-lightning", enemy):
enemy = hero.findNearestEnemy()
hero.cast("chain-lightning", enemy)
else:
enemy = hero.findNearestEnemy()
hero.attack(enemy)
"""
the stuff that is in the multiline comment is the other code for if i feel like i wanna switch to mornings edge
I’ve tried charismagnetizing then building a trap on myself but it didnt work )`;