If ( GetComboDamage() > npcTarget: GetHealth()) If ( npcTarget ~= nil and CanCast2( npcTarget ) ) If ( CanCast1( WeakestEnemy ) and GetUnitToUnitDistance(npcBot,WeakestEnemy) ComboMana)) NpcBot: GetActiveMode() = BOT_MODE_DEFEND_TOWER_BOT ) NpcBot: GetActiveMode() = BOT_MODE_DEFEND_TOWER_MID or NpcBot: GetActiveMode() = BOT_MODE_DEFEND_TOWER_TOP or NpcBot: GetActiveMode() = BOT_MODE_PUSH_TOWER_BOT or NpcBot: GetActiveMode() = BOT_MODE_PUSH_TOWER_MID or If ( npcBot: GetActiveMode() = BOT_MODE_PUSH_TOWER_TOP or Return BOT_ACTION_DESIRE_LOW,WeakestEnemy If((ManaPercentage > 0.4 or npcBot: GetMana() >ComboMana) and ability: GetLevel() >= 1 ) If(npcBot: WasRecentlyDamagedByAnyHero( 5)) Local enemys2 = npcBot: GetNearbyHeroes( 500, true, BOT_MODE_NONE ) Return BOT_ACTION_DESIRE_HIGH,WeakestEnemy If(npcBot: GetActiveMode() ~= BOT_MODE_RETREAT ) Local creeps = npcBot: GetNearb圜reeps(CastRange + 300, true) Local enemys = npcBot: GetNearbyHeroes(CastRange + 300, true,BOT_MODE_NONE) Local allys = npcBot: GetNearbyHeroes( 1200, false, BOT_MODE_NONE ) Local Damage = ability: GetAbilityDamage() Local CastRange = ability: GetCastRange() NpcBot: Action_UseAbilityOnEntity( AbilitiesReal, cast1Target ) NpcBot: Action_UseAbilityOnEntity(atos,cast1Target) If(atos ~= nil and atos: IsFull圜astable()) NpcBot: Action_UseAbility( AbilitiesReal ) NpcBot: Action_UseAbilityOnEntity( AbilitiesReal, cast3Target ) NpcBot: Action_UseAbilityOnLocation( AbilitiesReal, cast4Location ) If AbilitiesReal: IsFull圜astable() or AbilitiesReal: GetCooldownTimeRemaining() = 0 and i 0 ) TempComboMana =tempComboMana +AbilitiesReal: GetManaCost() Sum =sum + 200 + 400 *AbilitiesReal: GetLevel() Sum =sum + 40 + 20 *AbilitiesReal: GetLevel() + 6 *npcBot: GetLevel() If npcTarget: IsRooted( ) or npcTarget: IsStunned( ) or npcTarget: IsHexed( ) then Return npcTarget: CanBeSeen() and not npcTarget: IsMagicImmune() and not npcTarget: IsInvulnerable() AbilityLevelUpThink2(AbilityToLevelUp,TalentTree) CheckAbilityBuild(AbilityToLevelUp)Ībility_item_usage_generic. Table.insert(Abilities,ability: GetName()) Local ability =npcBot: GetAbilityInSlot(i)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |