Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Why is it spelled "ContionType" instead of "ConditionType"?

Featured Replies

Hey devs,

I've been working on some custom FightClass profiles and ran into something that's been driving me crazy for the past few hours. Not sure if this is intentional or an actual bug.

The problem:

The API uses "ContionType" instead of "ConditionType" - notice the missing 'i'. Same thing with the enum "FightClassContionsType".

I was writing XML files and naturally typed this (DOESN'T WORK):

<FightClassCondition>
    <ConditionType>HealthPercent</ConditionType>
    <Param xsi:type="FightClassConditionNumber">
        <Type>Smaller</Type>
        <Value>50</Value>
    </Param>
</FightClassCondition>

Spent forever debugging why my conditions weren't working. Finally checked the actual API docs and saw it's spelled ContionType. Changed to this and it works:

<FightClassCondition>
    <ContionType>HealthPercent</ContionType>
    <Param xsi:type="FightClassConditionNumber">
        <Type>Smaller</Type>
        <Value>50</Value>
    </Param>
</FightClassCondition>

My question is: Is this a typo that made it into production, or was there a reason for spelling it this way?

It's in both the CHM file and the HTML docs, so it's definitely in the compiled DLL. Here's what the API shows:

public class FightClassCondition
{
    public FightClassContionsType ContionType { get; set; }
    public FightClassConditionBase Param { get; set; }
}

If it's a bug: Any chance of fixing this in a future version? I know it would break existing profiles, but maybe you could support both spellings during a transition period?

If it's intentional: Could you add a note somewhere in the docs? Would've saved me a lot of time.

Just want to make sure I'm not missing something obvious here. Thanks!
 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.