Please clarify if the following is possible in the game:
For example, using Dimension Door magic, Fly magic, or Town Portal magic that a player acquired not from a scroll or a school of magic, but from a captured Book of Air or Earth. The magic buildings are constructed in one Castle, but none of the aforementioned magic is available in them.
Regarding books, there were no restrictions; even if you haven't built anything, you can use the book without any problems.
I also wanted to draw attention to the following: in the game, I encountered a problem where my opponent built Dimension Door before I took the Book of Air from the Dragon Utopia. After taking the book, I was extremely surprised by the absence of Dimension Door in it, which resulted in me losing because I couldn't keep up with the opponent while he was gathering 130 Wyverns.
Was this a bug with the magic?
Wow, I've never seen that before. They used to split or run around on their own, but for them to erase magic from a book like that is pretty funny.