Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

[Confirmed] The swarm applies -armor before its attack deals damage.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Confirmed] The swarm applies -armor before its attack deals damage.

    Dota 1: - armor is applied after unit has been damaged.

    Spoiler: 

    function Func3688 takes nothing returns boolean
    local trigger loc_trigger01=GetTriggeringTrigger()
    local integer loc_integer01=GetHandleId(loc_trigger01)
    local unit loc_unit01=(LoadUnitHandle(hashtable001,(loc_integ er01),(2)))
    local unit loc_unit02=(LoadUnitHandle(hashtable001,(loc_integ er01),(17)))
    if GetTriggerEventId()==EVENT_UNIT_DEATH then
    call UnitRemoveAbility(loc_unit02,'A1QZ')
    call SaveInteger(hashtable001,(GetHandleId((loc_unit02) )),((4290)),(2))
    call FlushChildHashtable(hashtable001,(loc_integer01))
    call Func0035(loc_trigger01)
    if GetTriggerUnit()==loc_unit02 then
    call KillUnit(loc_unit01)
    endif
    elseif GetTriggerEventId()==EVENT_UNIT_DAMAGED then
    if GetEventDamageSource()==loc_unit01 then
    call SetUnitAbilityLevel(loc_unit02,'A1QZ',GetUnitAbili tyLevel(loc_unit02,'A1QZ')+1)
    call DestroyEffect(AddSpecialEffectTarget("Abilities\\W eapons\\SkeletalMageMissile\\SkeletalMageMissile.m dl",loc_unit02,"chest"))
    endif
    else
    call SetUnitX(loc_unit01,GetUnitX(loc_unit02)-40)
    call SetUnitY(loc_unit01,GetUnitY(loc_unit02)-40)
    if Func0281(loc_unit02)and IsUnitVisible(loc_unit02,GetOwningPlayer(loc_unit0 1))==false then
    call KillUnit(loc_unit01)
    elseif ModuloInteger(GetTriggerEvalCount(loc_trigger01),5 )==0 then
    call IssueTargetOrder(loc_unit01,"attack",loc_unit02)
    endif
    endif
    set loc_trigger01=null
    set loc_unit01=null
    set loc_unit02=null
    return false
    endfunction


    Against level 1 Wisp (a hero with absolute 0 armor) first attack deals 30 damage

    Dota 2:

    Against level 1 Wisp first attack will deal 31 damage. This proves that The Swarm applies -armor before attack deals damage. If you have other more reliable way to prove or refute please post it here.
    Known Tooltips and UI information Issues List
    Unreleased heroes data:

    Hero Balance Compilation 6.48 onwards
    Items and Other Balance compilation 6.48 onwards
    Dota 1 6.81c Test Map

  • #2
    Just to be precise: Triggers that trigger on EVENT_UNIT_DAMAGED actually do run before the actual damage occurs. However, by the time the triggers run, the damage that is to be dealt is "locked in" and cannot be changed by retroactively subtracting armor. Other abilities that deal damage or something based on EVENT_UNIT_DAMAGED will run before the original damage source occurs; minus armor is just weird like that (see: Meld and Desolator oh my).

    Comment

    Working...
    X