Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[BUG] Attacks end prematurely
#3
I believe I figured it out. Once one of the resources is depleted, it will end the attack. So you could, in theory, have 0 gold left & 200k elixir left, and it would end Wink

~ line 894
Code:
If $Gold1 = $Gold2 Or $Elixir1 = $Elixir2 Or $Gold2 = "" Or $Elixir2 = "" Then

I'm going to change this to:
Code:
If $Gold1 = $Gold2 Or $Elixir1 = $Elixir2 Or ($Gold2 = "" And $Elixir2 = "") Then

This should fix the issue, assuming parentheses are used the same as other languages.
Reply
 


Messages In This Thread
[BUG] Attacks end prematurely - by barracoda - 01-13-2015, 09:55 AM
RE: [BUG] Attacks end prematurely - by copper - 01-14-2015, 04:40 AM
RE: [BUG] Attacks end prematurely - by barracoda - 01-14-2015, 04:52 AM
RE: [BUG] Attacks end prematurely - by pinay26 - 01-14-2015, 02:39 PM
RE: [BUG] Attacks end prematurely - by barracoda - 01-14-2015, 02:59 PM
RE: [BUG] Attacks end prematurely - by Mystery7 - 01-14-2015, 08:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website