Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed Heronames, added missing or reworked Abilities and Cooldown Information to Abilities #106

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

j1gs4w
Copy link

@j1gs4w j1gs4w commented May 11, 2016

Changed Lycan, Wisp and Arc Warden to match
official Dota 2 names and your name conventions

Added missing or reworked Abilities and Cooldown Information and the method getAbilityCooldown($id, $level) in Abilities.php
@Cst2989

j1gs4w added 2 commits May 11, 2016 04:19
Changed Lycan, Wisp and Arc Warden
added missing Abilities (most of them were because of new aghs upgrades
or reworked heroes)
and added cooldown information to every ability
@j1gs4w j1gs4w changed the title Fixed heroes.json Changed Heronames, added missing or reworked Abilities and Cooldown Information to Abilities May 13, 2016
@Cst2989
Copy link

Cst2989 commented May 13, 2016

This is awesome.

The only problem is I keep geting an erorr if the id doesnt have a cooldown, it should return 0 or something.

Also, it would be super if the ability had a is_ultimate true or false for each ability if you can.

Thanks a lot.

…and isUltimate

Fixed the check in getAbilityCooldown and renamed it to getCooldownById.
Added getCooldownsById to get all Cooldowns of an Ability.
Added the method isUltimate (hope it works for now until i can add an
boolean in the abilities.json)
@j1gs4w
Copy link
Author

j1gs4w commented May 14, 2016

Sorry i changed the order of checks in the method and messed it up by that.^^
I added a method isUltimate which checks if an ability has 3 levels or is invokers Ultimate because it has 4 levels, hope it works like it should.
I'll add a boolean to the abilities.json later for that when i'm back on my computer again.

j1gs4w added 2 commits May 16, 2016 18:08
Added Ability Information if it is an Ultimate and changed the method
isUltimate($id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants