diff --git a/create.php b/create.php index 3aecfd7..11e51dd 100644 --- a/create.php +++ b/create.php @@ -242,14 +242,21 @@ if ($('#rolecolor').val() = "transparent" || $('#rolecolor').val() = "black" || $('#rolecolor').val() = "white") { - $('#modifier').val() = "" + $('#modifier').val() = ""; $('#modifier').prop('disabled', 'disabled'); - $('#strength').val() = "" + $('#strength').val() = ""; $('#strength').prop('disabled', 'disabled'); - + } else if ($('#rolecolor').val() = "brown" || $('#rolecolor').val() = "grey" || $('#rolecolor').val() = "blue-grey" ) { + if ( $('#modifier').val() = "accent") { + $('#modifier').val().prop('disabled', 'disabled'); + $('#strength').val().prop('disabled', 'disabled'); + $('#modifier').val() = ""; + $('#strength').val() = ""; + } + }