Mutants: Genetic Gladiators enemy attacks your friend Code
good I'm looking at this script and made a simple change where you are the teamB, and your enemy is the teamA, I just changed the code, it works only when the enemy attacks again, and cause damage to your friend, and after that the game did not return to my turn to play, maybe someone with more experience can solve it ..
game link: https://apps.facebook.com/mutants_gg/
code
public function get enemyTeamLeader() : TeamLeader
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//d0
_as3_getlocal <0>
//66 cd 24
_as3_getproperty _currentFighter
//12 0e 00 00
_as3_iffalse offset: 14
//d0
_as3_getlocal <0>
//66 cd 24
_as3_getproperty _currentFighter
//66 c7 41
_as3_getproperty leader
//80 a8 02
_as3_coerce kobojo.timeManagement.fight::TeamLeader
//10 04 00 00
_as3_jump offset: 4
//20
_as3_pushnull
//80 a8 02
_as3_coerce kobojo.timeManagement.fight::TeamLeader
//80 a8 02
_as3_coerce kobojo.timeManagement.fight::TeamLeader
//d5
_as3_setlocal <1>
//d1
_as3_getlocal <1>
//12 20 00 00
_as3_iffalse offset: 32
//d1
_as3_getlocal <1>
//d0
_as3_getlocal <0>
//66 c7 24
_as3_getproperty _teamA
//ab
_as3_equals
//12 0b 00 00
_as3_iffalse offset: 11
//d0
_as3_getlocal <0>
//66 c8 24
_as3_getproperty _teamB
//80 a8 02
_as3_coerce kobojo.timeManagement.fight::TeamLeader
//10 07 00 00
_as3_jump offset: 7
//d0
_as3_getlocal <0>
//66 c7 24
_as3_getproperty _teamA
//80 a8 02
_as3_coerce kobojo.timeManagement.fight::TeamLeader
//80 a8 02
_as3_coerce kobojo.timeManagement.fight::TeamLeader
//d5
_as3_setlocal <1>
//d1
_as3_getlocal <1>
//48
_as3_returnvalue
===================
I changed the code to this
d0 30 d0 66 cd 24 12 0e 00 00 d0 66 cd 24 66 c7 41 80 a8 02 10 04 00 00 20 80 a8 02 80 a8 02 d5 d1 12 20 00 00 d1 d0 66 c7 24 ab 12 0b 00 00 d0 66 c8 24 80 a8 02 10 07 00 00 d0 66 c7 24 80 a8 02 80 a8 02 d5 d1 48
d0 30 d0 66 cd 24 12 0e 00 00 d0 66 cd 24 66 c7 41 80 a8 02 10 04 00 00 20 80 a8 02 80 a8 02 d5 d1 12 20 00 00 d1 d0 66 c7 24 ab 12 0b 00 00 d0 66 c8 24 80 a8 02 10 07 00 00 d0 66 c8 24 80 a8 02 80 a8 02 d5 d1 48