| 448 | } |
| 449 | |
| 450 | bool TechnoExt::IsTypeImmune(TechnoClass* pThis, TechnoClass* pSource) |
| 451 | { |
| 452 | if (!pThis || !pSource) |
| 453 | return false; |
| 454 | |
| 455 | auto const pType = pThis->GetTechnoType(); |
| 456 | |
| 457 | if (!pType->TypeImmune) |
| 458 | return false; |
| 459 | |
| 460 | if (pType == pSource->GetTechnoType() && pThis->Owner == pSource->Owner) |
| 461 | return true; |
| 462 | |
| 463 | return false; |
| 464 | } |
| 465 | |
| 466 | /// <summary> |
| 467 | /// Gets whether or not techno has listed AttachEffect types active on it |
nothing calls this directly
no test coverage detected