Resolved SlotAction#getAction returns null

Discussion in 'Client & Site Support' started by Baddest Man on Earth, Dec 14, 2014.

  1. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    611
    Likes Received:
    245
    @Cloud

    This is a combat ability.

    Code (Text):
    1. System.out.println(action.getName());
    2.             if (action.getAbility() == null) {
    3.                 System.out.println("null");
    4.             }
    Output:
    Code (Text):
    1. (12:32:09) Wrack
    2. (12:32:09) null
     
  2. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,585
    Likes Received:
    931
    If the ability isn't in the Powers sub classes then it won't have anything to return. It should still work fine and getName should still work.
     
  3. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    611
    Likes Received:
    245
    But Magic Abilities are returning null. #getName works fine, #getAbility is returning null
     
  4. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,585
    Likes Received:
    931
    Can you do some tests to find out if it ever works properly?
     
  5. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    611
    Likes Received:
    245
    I printed the ability name. then if #getAbility didn't return null, i printed the id:

    Magic:
    Code (Text):
    1. Ability: Wrack - Result: (05:16:57) null
    2. Ability: Omnipower - Result: (05:16:57) null
    3. Ability: Impact - Result: (05:16:57) null
    4. Ability: Combust - Result: (05:16:57) null
    5. Ability: Chain - Result: (05:16:57) null
    6. Ability: Sonic Wave - Result: (05:16:57) null
    7. Ability: Impact - Result: (05:16:57) null
    8. Ability: Dragon Breath - Result: (05:16:57) null
    9. Ability: Deep Impact - Result: (05:16:57) null
    10. Ability: Combust - Result: (05:16:57) null
    11. Ability: Asphyxiate - Result: (05:16:57) -id-118
    12. Ability: Wild Magic - Result: (05:16:57) -id-150
    13. Ability: Tsunami - Result: (05:16:57) null
    14. Ability: Metamorphosis - Result: (05:16:57) null
    Ranged:
    Code (Text):
    1. Ability: Piercing Shot - Result: (05:18:45) null
    2. Ability: Snap Shot - Result: (05:18:45) null
    3. Ability: Deadshot - Result: (05:18:45) null
    4. Ability: Snipe - Result: (05:18:45) null
    5. Ability: Dazing Shot - Result: (05:18:45) null
    6. Ability: Binding Shot - Result: (05:18:45) null
    7. Ability: Needle Strike - Result: (05:18:45) null
    8. Ability: Tight Bindings - Result: (05:18:45) null
    9. Ability: Fragmentation Shot - Result: (05:18:45) null
    10. Ability: Escape - Result: (05:18:45) null
    11. Ability: Rapid Fire - Result: (05:18:45) null
    12. Ability: Ricochet - Result: (05:18:45) null
    13. Ability: Bombardment - Result: (05:18:45) null
    14. Ability: Incendiary Shot - Result: (05:18:45) null
    Attack:
    Code (Text):
    1. Ability: Slaughter - Result: (05:19:46) null
    2. Ability: Slice - Result: (05:19:46) null
    3. Ability: Overpower - Result: (05:19:46) null
    4. Ability: Havoc - Result: (05:19:46) null
    5. Ability: Backhand - Result: (05:19:46) null
    6. Ability: Forceful Backhand - Result: (05:19:46) null
    7. Ability: Smash - Result: (05:19:46) null
    8. Ability: Barge - Result: (05:19:46) null
    9. Ability: Flurry - Result: (05:19:46) null
    10. Ability: Sever - Result: (05:19:46) null
    11. Ability: Hurricane - Result: (05:19:46) null
    12. Ability: Massacre - Result: (05:19:46) null
    13. Ability: Meteor Strike - Result: (05:19:46) null
    14. Ability: Meteor Strike - Result: (05:19:46) null
    Strength:
    Code (Text):
    1. Ability: Stomp - Result: (05:21:06) null
    2. Ability: Kick - Result: (05:21:06) null
    3. Ability: Punish - Result: (05:21:06) null
    4. Ability: Dismember - Result: (05:21:06) null
    5. Ability: Fury - Result: (05:21:06) null
    6. Ability: Destroy - Result: (05:21:06) null
    7. Ability: Quake - Result: (05:21:06) null
    8. Ability: Berserk - Result: (05:21:06) null
    9. Ability: Cleave - Result: (05:21:06) null
    10. Ability: Assault - Result: (05:21:06) null
    11. Ability: Decimate - Result: (05:21:06) null
    12. Ability: Pulverise - Result: (05:21:06) null
    13. Ability: Frenzy - Result: (05:21:06) null
    14. Ability: Frenzy - Result: (05:21:06) null
     

Share This Page

Loading...