mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Added configurable animation for SPELL_LIKE_ATTACK
This commit is contained in:
@@ -87,6 +87,11 @@ CCreature * CreatureID::toCreature() const
|
||||
|
||||
CSpell * SpellID::toSpell() const
|
||||
{
|
||||
if(num < 0 || num >= VLC->spellh->objects.size())
|
||||
{
|
||||
logGlobal->errorStream() << "Unable to get spell of invalid ID " << int(num);
|
||||
return nullptr;
|
||||
}
|
||||
return VLC->spellh->objects[*this];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user