|
@@ -4876,43 +4876,43 @@ void WorldDatabase::LoadSpells()
|
|
|
std::string givenType(given_by);
|
|
|
boost::algorithm::to_lower(givenType);
|
|
|
if(givenType == "unset" || givenType.length() < 1) {
|
|
|
- data->given_by_type == GivenByType::GivenBy_Unset;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_Unset;
|
|
|
}
|
|
|
else if(givenType == "tradeskillclass") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_TradeskillClass;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_TradeskillClass;
|
|
|
}
|
|
|
else if(givenType == "spellscroll") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_SpellScroll;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_SpellScroll;
|
|
|
}
|
|
|
else if(givenType == "alternateadvancement") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_AltAdvancement;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_AltAdvancement;
|
|
|
}
|
|
|
else if(givenType == "race") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_Race;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_Race;
|
|
|
}
|
|
|
else if(givenType == "racialinnate") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_RacialInnate;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_RacialInnate;
|
|
|
}
|
|
|
else if(givenType == "racialtradition") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_RacialTradition;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_RacialTradition;
|
|
|
}
|
|
|
else if(givenType == "class") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_Class;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_Class;
|
|
|
}
|
|
|
else if(givenType == "charactertrait") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_CharacterTrait;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_CharacterTrait;
|
|
|
}
|
|
|
else if(givenType == "focusabilities") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_FocusAbility;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_FocusAbility;
|
|
|
}
|
|
|
else if(givenType == "classtraining") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_ClassTraining;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_ClassTraining;
|
|
|
}
|
|
|
else if(givenType == "warderspell") {
|
|
|
- data->given_by_type == GivenByType::GivenBy_WarderSpell;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_WarderSpell;
|
|
|
}
|
|
|
else {
|
|
|
- data->given_by_type == GivenByType::GivenBy_Unset;
|
|
|
+ data->given_by_type = GivenByType::GivenBy_Unset;
|
|
|
}
|
|
|
|
|
|
/* Cast Messaging */
|