mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
checks on server
This commit is contained in:
@@ -140,6 +140,9 @@ void ApplyGhNetPackVisitor::visitBuildStructure(BuildStructure & pack)
|
||||
|
||||
void ApplyGhNetPackVisitor::visitSpellResearch(SpellResearch & pack)
|
||||
{
|
||||
gh.throwIfWrongOwner(&pack, pack.tid);
|
||||
gh.throwIfPlayerNotActive(&pack);
|
||||
|
||||
result = gh.spellResearch(pack.tid, pack.spellAtSlot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user