2
0
AlexVinS 7 жил өмнө
parent
commit
10dd7e8a43

+ 8 - 7
lib/spells/CSpellHandler.cpp

@@ -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

+ 0 - 4
lib/spells/CSpellHandler.h

@@ -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;