Advertisement
Guest User

Leona's Hidden passive

a guest
Oct 24th, 2011
1,701
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Decompiled using luadec 2.0 standard by sztupy (http://luadec51.luaforge.net)
  2.  
  3. -- Command line was: -dg leonasunlight.luaobj
  4.  
  5. -- look at last block (local 1_0_19) for Leona sunlight sunglasses reduction
  6.  
  7. BuffTextureName = "LeonaSunlight.dds"
  8. BuffName = "LeonaSunlight"
  9. AutoBuffActivateEffect = ""
  10. {BindObjectVar = "Owner", EffectName = "Leona_Sunlight_Champion.troy", Flags = 0
  11. , EffectIDVar = "Particle1", EffectIDVarTable = "InstanceVars", EffectID2Var = "
  12. Particle2", TargetObjectVar = "Owner", SpecificUnitOnlyVar = "Owner", SpecificTe
  13. amOnly = TEAM_UNKNOWN, UseSpecificUnit = false, FOWTeam = TEAM_UNKNOWN, FOWVisib
  14. ilityRadius = 0, SendIfOnScreenOrDiscard = false, FollowsGroundTilt = false}.Fac
  15. esTarget = false
  16. -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creatin
  17. g them
  18.  
  19. local l_0_4 = {BindObjectVar = "Owner", EffectName = "Leona_Sunlight_Champion.tr
  20. oy", Flags = 0, EffectIDVar = "Particle1", EffectIDVarTable = "InstanceVars", Ef
  21. fectID2Var = "Particle2", TargetObjectVar = "Owner", SpecificUnitOnlyVar = "Owne
  22. r", SpecificTeamOnly = TEAM_UNKNOWN, UseSpecificUnit = false, FOWTeam = TEAM_UNK
  23. NOWN, FOWVisibilityRadius = 0, SendIfOnScreenOrDiscard = false, FollowsGroundTil
  24. t = false}
  25. -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creatin
  26. g them
  27.  
  28. local l_0_5 = {BindObjectVar = "Owner", EffectName = "Leona_Sunlight.troy", Flag
  29. s = 0, EffectIDVar = "Particle1", EffectIDVarTable = "InstanceVars", EffectID2Va
  30. r = "Particle2", TargetObjectVar = "Owner", SpecificUnitOnlyVar = "Owner", Speci
  31. ficTeamOnly = TEAM_UNKNOWN, UseSpecificUnit = false, FOWTeam = TEAM_UNKNOWN, FOW
  32. VisibilityRadius = 0, SendIfOnScreenOrDiscard = false, FollowsGroundTilt = false
  33. }
  34. OnBuffActivateBuildingBlocks, l_0_4, {BindObjectVar = "Owner", EffectName = "Leo
  35. na_Sunlight.troy", Flags = 0, EffectIDVar = "Particle1", EffectIDVarTable = "Ins
  36. tanceVars", EffectID2Var = "Particle2", TargetObjectVar = "Owner", SpecificUnitO
  37. nlyVar = "Owner", SpecificTeamOnly = TEAM_UNKNOWN, UseSpecificUnit = false, FOWT
  38. eam = TEAM_UNKNOWN, FOWVisibilityRadius = 0, SendIfOnScreenOrDiscard = false, Fo
  39. llowsGroundTilt = false}.FacesTarget = {{Function = BBIf, Params = {Src1Var = "O
  40. wner", CompareOp = CO_IS_TYPE_HERO}, SubBlocks = {{Function = BBSpellEffectCreat
  41. e, Params = l_0_4}}}, {Function = BBElse, Params = {}, SubBlocks = {l_0_4}}}, {F
  42. unction = BBSpellEffectCreate, Params = l_0_5}, false
  43. OnBuffDeactivateBuildingBlocks = {{Function = BBSpellEffectRemove, Params = {Eff
  44. ectIDVar = "Particle1", EffectIDVarTable = "InstanceVars"}}}
  45. l_0_4 = BBSetBuffCasterUnit
  46. l_0_4 = {CasterVar = "Caster"}
  47. -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creatin
  48. g them
  49.  
  50. local l_0_17 = {BindObjectVar = "Target", EffectName = "LeonaPassive_tar.troy",
  51. Flags = 0, EffectIDVar = "MotaExplosion", TargetObjectVar = "Target", SpecificUn
  52. itOnlyVar = "Owner", SpecificTeamOnly = TEAM_UNKNOWN, UseSpecificUnit = false, F
  53. OWTeam = TEAM_UNKNOWN, FOWTeamOverrideVar = "TeamIDAttacker", FOWVisibilityRadiu
  54. s = 10, SendIfOnScreenOrDiscard = true}
  55. -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creatin
  56. g them
  57.  
  58. local l_0_19 = {AttackerVar = "Attacker", CallForHelpAttackerVar = "Attacker", T
  59. argetVar = "Owner", Damage = 0, DamageVar = "SunlightDamage", DamageType = MAGIC
  60. _DAMAGE, SourceDamageType = DAMAGESOURCE_PROC, PercentOfAttack = 1}
  61. BuffOnTakeDamageBuildingBlocks, l_0_4, l_0_5, l_0_19, l_0_19.IgnoreDamageCrit, l
  62. _0_19.IgnoreDamageIncreaseMods, l_0_19.PhysicalDamageRatio, {AttackerVar = "Atta
  63. cker", CallForHelpAttackerVar = "Attacker", TargetVar = "Owner", Damage = 0, Dam
  64. ageVar = "SunlightDamage", DamageType = MAGIC_DAMAGE, SourceDamageType = DAMAGES
  65. OURCE_PROC, PercentOfAttack = 1}.SpellDamageRatio, l_0_17, l_0_17.FacesTarget, {
  66. BindObjectVar = "Target", EffectName = "LeonaPassive_tar.troy", Flags = 0, Effec
  67. tIDVar = "MotaExplosion", TargetObjectVar = "Target", SpecificUnitOnlyVar = "Own
  68. er", SpecificTeamOnly = TEAM_UNKNOWN, UseSpecificUnit = false, FOWTeam = TEAM_UN
  69. KNOWN, FOWTeamOverrideVar = "TeamIDAttacker", FOWVisibilityRadius = 10, SendIfOn
  70. ScreenOrDiscard = true}.FollowsGroundTilt, l_0_5, l_0_5 = {{Function = BBIf, Par
  71. ams = {Src1Var = "Attacker", Value2 = true, CompareOp = CO_IS_TYPE_HERO}, SubBlo
  72. cks = {{Function = l_0_4, Params = l_0_4}, l_0_4}}}, {Function = l_0_5, Params =
  73. l_0_5, SubBlocks = l_0_5}, {{Function = BBGetTeamID, Params = {TargetVar = "Att
  74. acker", DestVar = "TeamIDAttacker"}}, {Function = BBGetTeamID, Params = {TargetV
  75. ar = "Caster", DestVar = "TeamIDCaster"}}, {Function = BBIf, Params = {Src1Var =
  76. "TeamIDAttacker", Src2Var = "TeamIDCaster", CompareOp = CO_EQUAL}, SubBlocks =
  77. {{Function = BBGetLevel, Params = {TargetVar = "Caster", DestVar = "Level"}}, {F
  78. unction = BBSetVarInTable, Params = {DestVar = "SunlightDamage", SrcValueByLevel
  79. = {20, 20, 35, 35, 50, 50, 65, 65, 80, 80, 95, 95, 110, 110, 125, 125, 140, 140
  80. }}}, {Function = BBTestUnitAttributeFlag, Params = {TargetVar = "Owner", Attribu
  81. teFlag = HAS_SUNGLASSES, ResultVar = "Sunglasses"}}, {Function = BBIf, Params =
  82. {Src1Var = "Sunglasses", Value2 = true, CompareOp = CO_EQUAL}, SubBlocks = {{Fun
  83. ction = BBMath, Params = {Src1Var = "SunlightDamage", Src1Value = 0, Src2Value =
  84. 1, DestVar = "SunlightDamage", MathOp = MO_SUBTRACT}}}}, {Function = BBSetVarIn
  85. Table, Params = {DestVar = "Attacker1", DestVarTable = "InstanceVars", SrcVar =
  86. "Attacker"}}, {Function = BBSetVarInTable, Params = {DestVar = "TeamIDAttacker",
  87. DestVarTable = "InstanceVars", SrcVar = "TeamIDAttacker"}}, {Function = BBSpell
  88. EffectCreate, Params = l_0_17}, l_0_17, {Function = BBApplyDamage, Params = l_0_
  89. 19}, l_0_19}}}, {Function = BBSpellBuffRemoveCurrent, Params = {TargetVar = "Own
  90. er"}}, false, false, 0, 0, {Function = BBSpellBuffClear, Params = {TargetVar = "
  91. Owner", BuffName = "LeonaSunlight"}}, false, false, {Src1Var = "Caster", Src2Var
  92. = "Attacker", CompareOp = CO_NOT_EQUAL}, BBIf
  93. PreLoadBuildingBlocks, l_0_4, l_0_5, l_0_5, l_0_4, l_0_4 = {{Function = BBPreloa
  94. dParticle, Params = {Name = "leona_sunlight_champion.troy"}}, {Function = BBPrel
  95. oadParticle, Params = {Name = "leona_sunlight.troy"}}, {Function = l_0_4, Params
  96. = l_0_4}, l_0_4}, {Function = l_0_5, Params = l_0_5}, {Name = "leonasunlight"},
  97. BBPreloadSpell, {Name = "leonapassive_tar.troy"}, BBPreloadParticle
  98.  
Advertisement
RAW Paste Data Copied
Advertisement