|
@@ -1370,7 +1370,7 @@ struct BattleSpellCast : public CPackForClient//3009
|
|
|
ui16 tile; //destination tile (may not be set in some global/mass spells
|
|
ui16 tile; //destination tile (may not be set in some global/mass spells
|
|
|
std::vector<ui32> resisted; //ids of creatures that resisted this spell
|
|
std::vector<ui32> resisted; //ids of creatures that resisted this spell
|
|
|
std::set<ui32> affectedCres; //ids of creatures affected by this spell, generally used if spell does not set any effect (like dispel or cure)
|
|
std::set<ui32> affectedCres; //ids of creatures affected by this spell, generally used if spell does not set any effect (like dispel or cure)
|
|
|
- TCreature attackerType;//id of caster to generate console message
|
|
|
|
|
|
|
+ TCreature attackerType;//id of caster to generate console message; -1 if not set (eg. spell casted by artifact)
|
|
|
ui8 castedByHero; //if true - spell has been casted by hero, otherwise by a creature
|
|
ui8 castedByHero; //if true - spell has been casted by hero, otherwise by a creature
|
|
|
template <typename Handler> void serialize(Handler &h, const int version)
|
|
template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
{
|
|
{
|