Developer's Blog
Register Low Fi Mark Forums Read

Notices

Reply
 
Thread Tools
Old 03-11-2012, 04:47 PM   #1
Yoshi-
Banned
 
Join Date: Jun 2010
Posts: 2,182
Blog Entries: 1
Yoshi- is offline

Default EMP


Is it still hp removal?
  Reply With Quote
Old 03-11-2012, 04:57 PM   #2
MauranKilom
Member
 
MauranKilom's Avatar
 
Join Date: Jan 2010
Location: Germany
Posts: 5,795
MauranKilom is offline
Default Re: EMP
Did you find this post helpful? Yes | No

It is. But it checks for the 'Bcyc' and the 'Bcy2' buffs (they are applied to a cycloned unit), and won't change the HP if the unit is affected by one of them.

And i just noticed, technically EMP has nothing to prevent the known 0.405 HP suicide bug.
Jass:
if GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)>loc_real02 then
  call SetUnitState(GetEnumUnit(),UNIT_STATE_LIFE,GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)-loc_real02)
If the unit has e.g. 100.2 HP and EMP removes 100 HP (loc_real02=100) the unit will be left with 0.2 HP which is "dead" according to the wc3 engine (units with HP<0.405 are considered dead). Since the death wasn't caused by any form of damage, the kill would be given to noone and the unit would've committed suicide. Yet I haven't seen that happen (and AM saw more strange things already...); I assume that "bug" wasn't introduced in this version.
__________________
I might edit my p0sts frequently and rapidly after posting.
DotA code of the month:
Jass:
if GetRandomInt(0,10)<11 then

Fix OD combo! IMPLEMENTED!
  Reply With Quote
Old 03-11-2012, 05:11 PM   #3
crinckle
Member
 
Join Date: Sep 2009
Location: India
Posts: 1,843
crinckle is offline
Default Re: EMP
Did you find this post helpful? Yes | No

That means it will still affect a unit which is invulnerable through other means?
  Reply With Quote
Old 03-11-2012, 05:20 PM   #4
MauranKilom
Member
 
MauranKilom's Avatar
 
Join Date: Jan 2010
Location: Germany
Posts: 5,795
MauranKilom is offline
Default Re: EMP
Did you find this post helpful? Yes | No

Yes. It will however ignore magic immune units.
__________________
I might edit my p0sts frequently and rapidly after posting.
DotA code of the month:
Jass:
if GetRandomInt(0,10)<11 then

Fix OD combo! IMPLEMENTED!
  Reply With Quote
Old 03-11-2012, 09:14 PM   #5
lezley
Member
 
Join Date: Jun 2009
Posts: 430
lezley is offline
Default Re: EMP
Did you find this post helpful? Yes | No

Quote:
Originally Posted by MauranKilom View Post
And i just noticed, technically EMP has nothing to prevent the known 0.405 HP suicide bug.

If the unit has e.g. 100.2 HP and EMP removes 100 HP (loc_real02=100) the unit will be left with 0.2 HP which is "dead" according to the wc3 engine (units with HP<0.405 are considered dead). Since the death wasn't caused by any form of damage, the kill would be given to noone and the unit would've committed suicide. Yet I haven't seen that happen (and AM saw more strange things already...); I assume that "bug" wasn't introduced in this version.
The coding (except for tornado interaction of course) is the same for 6.72 so the "bug" wasn't introduced in this version.
  Reply With Quote
Old 03-11-2012, 09:53 PM   #6
MauranKilom
Member
 
MauranKilom's Avatar
 
Join Date: Jan 2010
Location: Germany
Posts: 5,795
MauranKilom is offline
Default Re: EMP
Did you find this post helpful? Yes | No

Yeah, i checked that later and didn't think of going back to this thread cos i was mailing icefrog.
__________________
I might edit my p0sts frequently and rapidly after posting.
DotA code of the month:
Jass:
if GetRandomInt(0,10)<11 then

Fix OD combo! IMPLEMENTED!
  Reply With Quote
Old 03-12-2012, 02:31 AM   #7
chukky-jr
Member
 
chukky-jr's Avatar
 
Join Date: Nov 2010
Posts: 1,047
Blog Entries: 3
chukky-jr is offline
Default Re: EMP
Did you find this post helpful? Yes | No

quick question, Bcyc and Bcy2 are buffs for Tornado and Eul? or is it only used on Tornado?
  Reply With Quote
Old 03-12-2012, 01:08 PM   #8
MauranKilom
Member
 
MauranKilom's Avatar
 
Join Date: Jan 2010
Location: Germany
Posts: 5,795
MauranKilom is offline
Default Re: EMP
Did you find this post helpful? Yes | No

Oddly enough, Cyclone (the base ability) always places two buffs. I haven't been able to distinguish them.
I tested this once because i wanted a tornadoed unit without the invulnerability, but removing either buff ends the tornado (iirc).
__________________
I might edit my p0sts frequently and rapidly after posting.
DotA code of the month:
Jass:
if GetRandomInt(0,10)<11 then

Fix OD combo! IMPLEMENTED!
  Reply With Quote
Old 03-24-2012, 03:24 PM   #9
MauranKilom
Member
 
MauranKilom's Avatar
 
Join Date: Jan 2010
Location: Germany
Posts: 5,795
MauranKilom is offline
Default Re: EMP
Did you find this post helpful? Yes | No

Fixed
__________________
I might edit my p0sts frequently and rapidly after posting.
DotA code of the month:
Jass:
if GetRandomInt(0,10)<11 then

Fix OD combo! IMPLEMENTED!
  Reply With Quote
Reply


Forum Jump

Thread Tools