Wrong unit icons upon renaming

DeletedUser

Guest
  1. Summary of the issue (title of the post)
    Renamed attacks show a wrong symbol if additional details added to the format.


  2. Overview of the bug (description):
    The function which trys to extract the unit symbol out of the renamed attack seems to have trouble finding the correct symbol. It uses for example the noble-symbol even though the attack has been marked as Ram, in case you add additional informations to the format and the opposings playername contains the word "noble" (like 'MrNobleMan').
    Use the following script:
    PHP:
    javascript:var format = "%unit%, %player% - %origin% - Start: %sent%"; $("input[name=label_format]").val(format).parents("form").find("input[name=label]").click();

  3. Steps to reproduce:
    1. Get a premium account
    2. Add the script to the quickbar
    3. Receive an attack (for example with swords) from a player having the word "noble" in his nickname or as village name.
    4. Go to the incomings-overview and select that attack (checkbox)
    5. Press the added script from the quickbar
    6. Take a look at the wrong unit symbol

  4. Reproduction rate (Every time? Sometimes?):
    Every time

  5. Browser and Version:
    Google Chrome, 36.0.1985.125 m

  6. Visual Reference if available (Screenshot) please put them in a spoiler.:
    Command renamed manually:
    c5c2a948f9.png


  7. Player name and market for rewards:
    baloium, DE
 
Last edited by a moderator:
Top