mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Added a boolean in the AbilityModule
Added 'isSubAbility()' boolean in AbilityModule. This allows a lavabending/metalbending ability to display its proper color in /pk d earth.
This commit is contained in:
parent
45867b66a1
commit
de931f44f9
2 changed files with 10 additions and 2 deletions
|
@ -55,5 +55,8 @@ public class AbilityModule extends AbilityLoadable implements Cloneable {
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean isSubAbility()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -173,7 +173,12 @@ public class AbilityModuleManager {
|
|||
}
|
||||
if (ab.getElement() == Element.Air.toString()) airbendingabilities.add(ab.getName());
|
||||
if (ab.getElement() == Element.Water.toString()) waterbendingabilities.add(ab.getName());
|
||||
if (ab.getElement() == Element.Earth.toString()) earthbendingabilities.add(ab.getName());
|
||||
if (ab.getElement() == Element.Earth.toString())
|
||||
{
|
||||
earthbendingabilities.add(ab.getName());
|
||||
if(ab.isSubAbility())
|
||||
earthsubabilities.add(ab.getName());
|
||||
}
|
||||
if (ab.getElement() == Element.Fire.toString()) firebendingabilities.add(ab.getName());
|
||||
if (ab.getElement() == Element.Chi.toString()) chiabilities.add(ab.getName());
|
||||
if (ab.isShiftAbility()) shiftabilities.add(ab.getName());
|
||||
|
|
Loading…
Reference in a new issue