(CDOMObject owner, CNAbilitySelection choice, PlayerCharacter pc)
| 345 | } |
| 346 | |
| 347 | @Override |
| 348 | public void applyChoice(CDOMObject owner, CNAbilitySelection choice, PlayerCharacter pc) |
| 349 | { |
| 350 | CNAbility cna = choice.getCNAbility(); |
| 351 | Ability ab = cna.getAbility(); |
| 352 | AbilityCategory cat = (AbilityCategory) cna.getAbilityCategory(); |
| 353 | boolean isVirtual = Nature.VIRTUAL.equals(cna.getNature()); |
| 354 | if (isVirtual) |
| 355 | { |
| 356 | pc.addSavedAbility(choice, UserSelection.getInstance(), UserSelection.getInstance()); |
| 357 | } |
| 358 | else |
| 359 | { |
| 360 | pc.addAbility(choice, UserSelection.getInstance(), UserSelection.getInstance()); |
| 361 | pc.adjustAbilities(cat, ab.getSafe(ObjectKey.SELECTION_COST)); |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | @Override |
| 366 | public boolean allow(CNAbilitySelection choice, PlayerCharacter pc, boolean allowStack) |
nothing calls this directly
no test coverage detected