diff --git a/app/Models/Character.php b/app/Models/Character.php index 979f24a..b9d45ca 100644 --- a/app/Models/Character.php +++ b/app/Models/Character.php @@ -67,6 +67,14 @@ class Character extends Model return $this->belongsTo(User::class); } + /** + * Check if this character is the user's main character + */ + public function isMain() + { + return $this->user->character_id == $this->id; + } + /** * Retrieve the character's professions. */