<?php

namespace OpenDominion\Http\Requests\Dominion\Actions;

use OpenDominion\Http\Requests\Dominion\AbstractDominionRequest;

class CastSpellRequest extends AbstractDominionRequest
{
    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            'spell' => 'required',
            'target' => 'integer|exists:dominions', // todo: not in own realm && not cross round?
        ];
    }
}

<?php

namespace OpenDominion\Http\Requests\Dominion\Actions;

use OpenDominion\Http\Requests\Dominion\AbstractDominionRequest;

class CastSpellRequest extends AbstractDominionRequest
{
    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            'spell' => 'required',
            'target_dominion' => 'integer|exists:dominions,id', // todo: not in own realm && not cross round?
        ];
    }
}

Fix cast spell request rule
Fix cast spell request rule
