Exemplo n.º 1
0
 /**
  * PLAYER:(guess) &bYou discharged the spell at friendly people in the area, healing %d damage!
  * ROOM:(guess) &C%s just discharged %s at friendly people in the area!
  */
 protected void handleAreaMessage() {
   if (!_spell.getCureCondition().equals(CureCondition.NONE)) {
     SpellCureCondition spellCureCondition = new SpellCureCondition(_entity, _room, _spell);
     spellCureCondition.handleAreaMessage();
   } else {
     String messageToPlayer =
         MessageFormat.format(
             TaMessageManager.SPLMHL.getMessage(), _spellResult.getNumberEffect());
     String messageToRoom =
         MessageFormat.format(
             TaMessageManager.SPLMHO.getMessage(), _entity.getName(), _spell.getMessage());
     displayBeneficialAreaEffectMessages(messageToPlayer, messageToRoom);
   }
 }