mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Cleanup
This commit is contained in:
parent
b194f8f13b
commit
10dd7e8a43
@ -82,7 +82,14 @@ static const ESpellSchool SCHOOL_ORDER[4] =
|
||||
|
||||
///CSpell::LevelInfo
|
||||
CSpell::LevelInfo::LevelInfo()
|
||||
:description(""),cost(0),power(0),AIValue(0),smartTarget(true), clearTarget(false), clearAffected(false), range("0")
|
||||
: description(""),
|
||||
cost(0),
|
||||
power(0),
|
||||
AIValue(0),
|
||||
smartTarget(true),
|
||||
clearTarget(false),
|
||||
clearAffected(false),
|
||||
range("0")
|
||||
{
|
||||
|
||||
}
|
||||
@ -563,8 +570,6 @@ CSpell::TargetInfo::TargetInfo(const CSpell * spell, const int level, spells::Mo
|
||||
: type(spell->getTargetType()),
|
||||
smart(false),
|
||||
massive(false),
|
||||
onlyAlive(!spell->isRisingSpell()),
|
||||
alwaysHitDirectly(false),
|
||||
clearAffected(false),
|
||||
clearTarget(false)
|
||||
{
|
||||
@ -580,10 +585,6 @@ CSpell::TargetInfo::TargetInfo(const CSpell * spell, const int level, spells::Mo
|
||||
smart = true; //FIXME: not sure about that, this makes all spells smart in this mode
|
||||
massive = true;
|
||||
}
|
||||
else if(mode == spells::Mode::SPELL_LIKE_ATTACK)
|
||||
{
|
||||
alwaysHitDirectly = true;
|
||||
}
|
||||
else if(mode == spells::Mode::CREATURE_ACTIVE)
|
||||
{
|
||||
massive = false;//FIXME: find better solution for Commander spells
|
||||
|
@ -213,10 +213,6 @@ public:
|
||||
spells::AimType type;
|
||||
bool smart;
|
||||
bool massive;
|
||||
bool onlyAlive;
|
||||
///no immunity on primary target (mostly spell-like attack)
|
||||
bool alwaysHitDirectly;
|
||||
|
||||
bool clearAffected;
|
||||
bool clearTarget;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user