Settype bugfixing
This commit is contained in:
parent
84e20cbd83
commit
88ed05127b
@ -338,7 +338,14 @@ namespace NadekoBot.Modules.pokegame
|
|||||||
if (targetType == null)
|
if (targetType == null)
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage("Invalid type specified. Type must be one of:\nNORMAL, FIRE, WATER, ELECTRIC, GRASS, ICE, FIGHTING, POISON, GROUND, FLYING, PSYCHIC, BUG, ROCK, GHOST, DRAGON, DARK, STEEL");
|
await e.Channel.SendMessage("Invalid type specified. Type must be one of:\nNORMAL, FIRE, WATER, ELECTRIC, GRASS, ICE, FIGHTING, POISON, GROUND, FLYING, PSYCHIC, BUG, ROCK, GHOST, DRAGON, DARK, STEEL");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
if (targetType == getPokeType(e.User.Id))
|
||||||
|
{
|
||||||
|
await e.Channel.SendMessage($"Your type is already {targetType.getName().ToLowerInvariant()}{targetType.getImage()}");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//Payment~
|
//Payment~
|
||||||
var amount = 1;
|
var amount = 1;
|
||||||
var pts = Classes.DbHandler.Instance.GetStateByUserId((long)e.User.Id)?.Value ?? 0;
|
var pts = Classes.DbHandler.Instance.GetStateByUserId((long)e.User.Id)?.Value ?? 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user