1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Serverside validation, setting for terrain compatibility before cast etc

This commit is contained in:
Dydzio
2024-04-01 18:12:38 +02:00
parent e69c096f94
commit 3bb66de551
7 changed files with 113 additions and 52 deletions

View File

@@ -92,6 +92,9 @@ private:
/// casts current spell at specified location
void performSpellcasting(const int3 & castTarget);
/// performs clientside validation of valid targets for adventure spells
bool isValidAdventureSpellTarget(int3 targetPosition, const CGObjectInstance * topObjectAtTarget, SpellID spellId);
/// dim interface if some windows opened
void dim(Canvas & to);